|
Hi I am making a maze game. I want when the player gets to the middle of the maze, to run script. How should I do this? I basically want to stop the time and go to another scene, but this I will figure out later. Thanks, Chris
(comments are locked)
|
|
Put a game object where you want this to happen (can be empty game object). Attach a collider (e.g. cube or sphere) to the game object and set the collider to IsTrigger. You can then use the following function: Wow.... that worked amazing. I am also really impressed with the response times in this forum. Thanks a lot!!
Feb 14 '10 at 10:00 AM
cmos
(comments are locked)
|
|
In attempting to do this I got some errors so this is how I got around it. I had to add the scenes to the build settings (under the file tab) and attached this script to the trigger (game object).
(comments are locked)
|

Hi cmos,
I see your question has been answered by Sebas, please do upvote it and mark it as accepted for future reference. Cheers!