Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Agent-6141 · Mar 14, 2013 at 01:47 AM · pausestarttron

How do i pause a scene off the start for 3 seconds

Im creating a tron game and I created a count down but when the gam starts the count down works but the game isnt paused so the bike moves while the countdown is running. So i want to pause the bike for 3 seconds or how ever long it takes for the countdown to go Iv tried this function Start () { pause (); } function pause (){ Time.timeScale = 0; yield WaitForSeconds (4.5); Time.timeScale = 1; } but that slows the wait for seconds to the point to where it doesnt move. how do i fix this which means the timescale never goes back to 1

Comment
Add comment · Show 7
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Auggie · Mar 14, 2013 at 02:21 AM 0
Share

have you tried making the speed of the bike 0 and after 3 seconds changing it to its normal speed?

avatar image Fattie · Mar 14, 2013 at 07:39 AM 0
Share

simply use

Invoke()

for very simple timers in Unity, when you're starting out. go to unityGE$$anonymous$$S.com for many long examples

avatar image Agent-6141 · Mar 16, 2013 at 06:59 AM 0
Share

hey thanks guys for the answers iv got it working

avatar image Agent-6141 · Mar 16, 2013 at 07:45 PM 0
Share

what tick symbol?

avatar image whydoidoit · Mar 16, 2013 at 07:46 PM 1
Share

The tick at the bottom in the picture. Please don't post comments as Answers - hit the Add New Comment button alt text

screen shot 2013-03-16 at 19.45.16.png (5.9 kB)
Show more comments

2 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by 3dws · Mar 14, 2013 at 02:53 AM

i think u must use yield WaitForSeconds (4.5) in start function of your bike , try it.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Maulik2208 · Mar 14, 2013 at 08:57 AM

Ok as per my understanding at first you should Declare a bool.....by default make it false....then after finishing the timer make the bool to true......and then link your bikes to that bool means check for the status of the bool and according to that fix the behavior of your bikes...

 if(bool)
 {
   // Do your bike related stuff here
 }
 if(!bool)
 {
   // Do the stuff which you want at the timer is running
 }


According to me in first if condition you should have something like Gameobject.active = false; or maintain the speed to 0....and in second condition just make the object active or set the speed as per your needs..... Don't forget to mark the answer if you found it useful......

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

15 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How do I start game paused 2 Answers

How To Make A Pause Menu? 1 Answer

Suspend script until keypress 2 Answers

Making a Pause Menu 1 Answer

Game freezes when i press play but when i press Esc it starts 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges