- Home /
how to run 3rd person automaticaly
I am making a racing game in unity like Temple Run where the player needs to constantly run and collect fruits/ power ups. I am using the 3rd person default construction worker to make this work. But can't figure out what to tweak in the script to make it run continuously.. Help me where exactly I need to change this.
Can you include the relevant part of your movement script?
Answer by valrossen_Oliver · Jan 14, 2014 at 08:57 AM
You can edit the script you are using. (ThirdpersonController) and edit the: if KeyGetDown("W") and replace it with: if (Driving)
Start of script: //Javascript static var Driving = true;
And when you want to exit the level just make a script that tells the static variable to change into: false
Your answer
Follow this Question
Related Questions
Cloud recognition in Vuforia 0 Answers
How I can find the complete event of my animation 1 Answer
Play Different Animation Using the Same Key Press? 1 Answer
How to make an MMO 3 Answers
Export From UDK into Unity? 5 Answers