Pular para o conteúdo principal

Pesquisa

Respawn after death

  • mmdev1 - John & Luci

    Hi,

    There is an input on the control sensor called respawn.
    That should be what you need

    John

  • MrKlawUK

    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?

  • mmdev1 - John & Luci

    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

  • MrKlawUK

    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?

Por favor, entrar para comentar.