Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 01:28
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, Ayumi), 838 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
help with removing entity #317325
03/30/10 15:57
03/30/10 15:57
Joined: Feb 2008
Posts: 85
Germany
Schloder87 Offline OP
Junior Member
Schloder87  Offline OP
Junior Member

Joined: Feb 2008
Posts: 85
Germany
i have a problem with removing an entity
Quote:


function place_item1()
{

if ((mouse_map == pointer_pcx) || (item1_placed == 1)) {return;}

if (mouse_map == shield_pcx) // picked up the shield
{
item_ptr = shield_pan;

player_weapon = my;
shield_pan.visible = off;
ent_create(shield_mdl, player.x, attach_shield);
shield_on = 1;





item_ptr.pos_x = 117; // set the proper position for the item
item_ptr.pos_y = 698; // on the x and y axis
item_ptr.visible = on; // and make it visible
item1_placed = 1; // slot1 is occupied
mouse_map = pointer_pcx; // restore the initial bitmap (the arrow)
show_pointer = 0; // hide the mouse pointer
}
If ((mouse_map != pointer_pcx) && (item1_placed != 1)) { ent_remove(player_weapon);
}

}


watch the follogwing red part, the entity doestn`t remove!


Visit IGRAVISION at: http://www.igravision.com
_________________________
Re: help with removing entity [Re: Schloder87] #317332
03/30/10 16:09
03/30/10 16:09
Joined: Sep 2009
Posts: 496
P
Progger Offline
Senior Member
Progger  Offline
Senior Member
P

Joined: Sep 2009
Posts: 496
try ptr_remove laugh
WFG Progger


asking is the best Way to get help laugh laugh laugh
Re: help with removing entity [Re: Progger] #317334
03/30/10 16:13
03/30/10 16:13
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Did you try this code with a different mouse map than pointer_pcx and shield_pcx?
Otherwise the code won't get executed because item1_placed is 1.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1