Gamestudio Links
Zorro Links
Newest Posts
Help!
by VoroneTZ. 10/14/25 05:04
Zorro 2.70
by jcl. 10/13/25 09:01
ZorroGPT
by TipmyPip. 10/12/25 13:58
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 10/11/25 18:45
Reality Check results on my strategy
by dBc. 10/11/25 06:15
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (Quad, VoroneTZ, Nymphodora), 8,449 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
joenxxx, Jota, krishna, DrissB, James168
19170 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 | 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