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
2
Question by Colombian.kiwi · Apr 19, 2011 at 03:31 AM · delaystart

show text to start playing

Hello everyone! Ive been trying to find a script to make a little text to start my game saying: "ready"then "go!" and I want the player not beeing able to move until this is shown.... any ideas?

Comment
Add comment
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

1 Reply

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

Answer by Moon · Apr 19, 2011 at 03:40 AM

Well, if I understood right what you wanted right...Here is a GUI that will pop up at the bottom of the screen saying "Are you ready????" than a button under it saying "GO!!" and when you click the "GO!!!" button, the GUI will all go away, the problem is the character is going to move while this is up, but you might figure it out..Hope this helps :)





public var item0 : GUIContent = GUIContent("Are you ready????"); public var item1 : GUIContent = GUIContent("GO!!"); public var guiSkin : GUISkin;

 function OnGUI(){ 
     GUI.skin = guiSkin;
     GUI.Box(Rect(Screen.width/2 + -400, Screen.height-70, 800, 30), item0);
     if(GUI.Button(Rect(Screen.width/2 + -25, Screen.height-40, 50, 40), item1)){
     Destroy (this); 
     }
 }
 function Awake() { 
 }
 function fillWindow(winID : int) { 
     switch(winID){
         default:
             Debug.Log("Default case reached");
     }
     GUI.DragWindow (Rect (0,0, 10000, 10000));
 }

Comment
Add comment · Show 5 · 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 Colombian.kiwi · Apr 19, 2011 at 04:08 AM 0
Share

well, actually thats what im having trouble with. I want to give the player the time to prepare himself to run because other character is chasing him :s... so its kind of delay the gameplay? i guess...

avatar image Colombian.kiwi · Apr 19, 2011 at 04:27 AM 0
Share

Thanks a lot though. $$anonymous$$aybe I made it sound too complicated, all i want is an animated text that goes ready, go! ... and then the game can start.

avatar image Moon · Apr 19, 2011 at 04:28 AM 0
Share

Well, you could create a scene where they cannot move and have this script in there, but replace the "Destroy (this);" with "Application.LoadLevel(LEVELID);" ....LEVELID is the id of the level for example; "1" or "2" depends on how you have all the scenes set up

avatar image Moon · Apr 19, 2011 at 04:28 AM 0
Share

and the level it uploads is a level where they can move

avatar image Jesse Anders · Apr 19, 2011 at 06:33 AM 0
Share

Duplicate question: http://answers.unity3d.com/questions/53440/3-2-1-go-before-gameplay-starts.

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

No one has followed this question yet.

Related Questions

I'm having trouble with a coroutine delay 2 Answers

Particle Start Delay Error 1 Answer

Delay gameplay and show text: 2 Answers

Initialising List array for use in a custom Editor 1 Answer

Better way to delay a function for a few seconds? Javascript 1 Answer


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