Reset a destroyed object in its original position
I currently have a set up that causes a 'coin' object to be destroyed once the player comes in contact with it by using a tag that will output a signal to the destroyer on the coin which is detected by a trigger zone on the player character.
I would like this coin to respawn in the same position in the scene after the player has died. I tried using the reset scene output on the global settings gadget but that didn't work.
-
You could try deactivating it rather than destroying it. A selector with two states would work.
State A is coin on and visible. Once collected, the selector goes to state B.
State B could use a keyframe to make the coin invisible and deactivate its awarded score.
When you die the respawn signal could revert the selector to state A again. -
Alternately, you could have all the coins spawn with an emitter and respawn when you die, using the same kind of logic Cloud explained.
-
Thanks for the help @thebiv and @CLOUD1985!! It's my first time working with logic so its been quite the learning curve for me.
I'll try using both of your techniques and see how that goes. -
Can I ask, what about resetting the scene didn't work?
댓글을 남기려면 로그인하세요.