Is there anyway to move a player back to the start of a level/section of a level when they collide with an object (enemy/trap)?
Hi! I'm basically making a small puzzle/maze game and wanted one part of the game to have an area filled with enemies and/or traps that, if collided with, send the player back to the start of that section.
I can't seem to figure out or think up a way to get this done without loading the player back to the start of the level if they collide with the enemy/trap. Basically is there anyway to move a player back to a specific point in the 3d space when the collision happens?
If anyone has any suggestion or solutions, any help would be much appreciated.
Thanks, Jonkai
Answer by tormentoarmagedoom · Feb 05, 2019 at 04:38 PM
I dont understand whay are you asking something that basic...
Change its transform.position ....
Answer by Jonkai · Feb 05, 2019 at 05:35 PM
Perhaps because I've only just started learning and throughout the tutorials and guides that I have used, using transform.position within this case didn't come to mind. I know it may seem basic to you, but the reason I asked was simply because I didn't/understand. Thanks for the help anyway.