주 콘텐츠로 건너뛰기

검색

Reset changes when respawn

  • mmdev7

    You can either reset the entire level using the reset level input on the global gadget, however this will reset everything including setting the player back to the start.

    The other option is to use the ‘just spawned’ output on the checkpoint gadget to reset any logic you want.

    Hope this is helpful :) Peter

  • SnowHermit

    That's what I tried. I created a keyframe for the original position of objects, and placed it in a timeline. I connected 'Just spawned' to activate the timeline.
    When I respawn from the last checkpoint, nothing happens. Things don't go back to their original position. Not sure what I'm doing wrong.

  • mmdev7

    I think ‘just spawned’ is a pulse so depending on what your timeline is set to it might not work.

    Could you try wiring the just spawned signal directly into the keyframe (so take it off the timeline)

    Peter

  • SnowHermit

    I tried that, with no luck. I think I was trying to do too much: moving objects in a sequence, turning on and off physics, with various sounds, and so on. Far above my logic knowledge. I ended up simplifying the scene instead. Thanks for your tips anyway, Peter!

    I think there should be a simpler way to let checkpoints just rewind time or reset things to the way they were at the moment one first reached that checkpoint.

  • Supposer

    Could you reset the level, but move the character to the correct position yourself? So, store the "respawn" position in a variable, and use that after the level reset to position the puppet correctly?

댓글을 남기려면 로그인하세요.