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 Rafa · Jan 25, 2012 at 05:49 PM · cameragui

Game simple intro/ending

Hi all,

I was wondering if someone could give me a hand. I'm not exaclty an experienced programmer, but I would like to add a simple text intro to my game.

Long version:

Right now, I have MyGUI set up (I would like to use it to display the text), and the rest of the screen would be just black.

I thought maybe the best way to accomplish this, would be adding a second camera, a black plane for background and the text would show up as soon as the game start. Once the text is over (a few lines, clicking to pass to the next one), then the player clicks to go to the main camera and play the game.

Is this the best way to do it? And how do I code this?

In my mind it is simple, but I can't seem to be able to do code it by myself (been at it for hours).

Short version: - Need to start the game in camera 1 - Show the text using myGUI (already coded); - Click advances - Last click changes to camera 2 and the game begins.

Thanks in advance for any help provided!

Comment
Add comment · Show 2
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 cj_coimbra · Jan 26, 2012 at 12:12 PM 0
Share

You don´t need two cameras for that. Ins$$anonymous$$d, just have a game state variable so that you know what to do with OnGUI() and Update() for each individual game state you have. Clicking that "advance" button you mentioned just trigger the game state corresponding to "game is running".

avatar image Rafa · Jan 26, 2012 at 03:40 PM 0
Share

I see, so I create a variable that will control when it's "intro time" and "game time".

But how do I set up the black screen, so the game wouldn't be running in the background while the intro text is running?

And, do I need to set up two scenes for this?

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Rafa · Jan 26, 2012 at 03:43 PM

I see, so I would just use a variable to control the game state to "intro" and "game", right?

But how could I set the screen black, depending on the variable?

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

How do I mask off specific parts from a plane or cube? 3 Answers

UI in multiplayer problem 2 Answers

I want a HitMark(GUI) system like in Crysis-CoD that indicates where i am hit from and also a Camera/Screen shake effect 3 Answers

Unity2D - Camera in exported game is zoomed out compared to unity game preview HELP PLEASE! 2 Answers

Puttings GUI's between objects 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