Respawn after death
I don’t know why this is confusing me but it is. When my player ship is destroyed I just get returned to the nt know what I need to do to get it to respawn properly.
The controller gadget attached to my ship, and has force possess set. So at the start of the scene i’m Directly controlling the ship.
But when I blow the ship up - nothing. My guess is because i’m Destroying the ship with all the logic on it so i’ll need a nudge how best to set things up on case I need to redo a bunch of stuff.
I tried experimenting with the ‘died’ output and ‘die’ input on the controller gadget but no luck. No real explanation what these do - what does ‘die’ mean?
Am I forced to use health to get this working (I use health in a couple of places but in others I just blow the ship up immediately like if you collide with scenery)
-
Hi,
There is an input on the control sensor called respawn.
That should be what you need
John -
Thanks but do I just fire an input into it upon death? Alongside other logic like emitting explosion/sfx? Do I still destroy the object (prefer it not to,be visible/controllable while,the explosion plays). But,could,there be an issue if my controller gadget is on the object I Destroy? So the gadget dies before it receives a respawn signal?
What is your recommended best practice for controller gadgets - keep them off player objects or not? -
Hi,
Don't use a destroyer, the respawn essential does that,
You can still spawn your explosion or whatever especially if you delay between death and respawn.
Deffo keep them on your object.
John -
thanks. So for anything that causes death - health 0, any other logic that results in expected death - wire it into the 'respawn' input on the controller?
If I want the ship to disappear as the explosion kicks off, should I turn it invisible, otherwise the respawn may pull the camera away too quickly?
Lastly, how do you end the game when you hit 0 lives? I can decrement a counter but is there a different input I hit for 'dead' rather than 'respawn'. Is it 'died' on the controller?
الرجاء تسجيل الدخول لترك تعليق.