hey , i’ve been wondering about spikes in platfomer game.
what logic do i need to make my character back to start position when hitting a spikes?
thanks.
1 Like
Hey,
collision condition, position action
Good old logical logic
2 Likes
What Gruk said works. You make a object variable with the starting position that is set when the scene is first entered and set the position of the object to those variables again on collision. When a checkpoint is hit you can just set these variables to the player’s current position again.
You might want to do this for every object that can move so that the position of enemies, etc is reset too.
Alternatively just reload the scene.
2 Likes
thankyouuuuu so much
1 Like
thanks for the reply!!!