Page 1 of 1

respawn

PostPosted: Wed Dec 14, 2005 5:24 am
by CdaMarinersFan
Hmmm... I'm having a hard time getting a ship to respawn from a timer it (the ship) creates on event destroy actor. Anyone got suggestions? I want the ship to respawn after a five-second timer is up, and it is counted only once.

PostPosted: Wed Dec 14, 2005 2:47 pm
by plinydogg
I have had similar issues before...the problem may be the fact that you are creating a timer on an actor that is then destroyed. That is, when you destroy the actor, it might destroy the timer along with it.

PostPosted: Wed Dec 14, 2005 3:33 pm
by StarFishDesign
Together with the destruction of the Actor create a new Actor (which is invisible, a Smiley-Only actor). And on this actor create a new Timer... if this timer reaches the 5 secs mark... re-create your ship-actor.

Should work...

PostPosted: Fri Dec 16, 2005 12:01 am
by CdaMarinersFan
shall try that... thx...pretty good idea...ah, man. I already needed an actor saying "Respawning Player *", I could just use that rofl

PostPosted: Fri Dec 16, 2005 5:04 am
by CdaMarinersFan
Want to know another glitch? try "access violation 0x0045DF46 (tried to read at 0x0000018E), program terminated."! Makslane, you really need to help me with this, else no one may be able to play my game...

PostPosted: Fri Dec 16, 2005 12:10 pm
by makslane
Send me the game, and tell me how can I repeat the error.

PostPosted: Fri Dec 16, 2005 11:43 pm
by CdaMarinersFan
I'll send the game by email, then try to destroy any ship (besides Player 3, it doesn't shut down on it, dunno why...) use arrow keys to move Player 3 and down is to shoot...

PostPosted: Sun Dec 18, 2005 1:57 pm
by makslane
I didn't receive. Make sure put the subject of this thread in the email

PostPosted: Mon Dec 19, 2005 2:22 pm
by CdaMarinersFan
didn't send it yet :) went to Seattle before trying to, but I'll try to send it on PM, since Hotmail & Yahoo think it may contain a "virus", in which it doesn't.

PostPosted: Mon Dec 19, 2005 4:51 pm
by makslane
To avoid this crash now, in the actor p4respawn -> Timer -> Create Actor don't set the parent to 'Parent Actor'.

This crash will be fixed in next version.

PostPosted: Mon Dec 19, 2005 11:50 pm
by CdaMarinersFan
whew, how'd you come up w/ that?

must take some micro :D rofl