Jump to content
This site uses cookies! Learn More

This site uses cookies!

armedunity.com uses cookies to improve user experience.

By continuing to use this site, you agree to allow us to store cookies on your computer.

Search the Community

Showing results for tags 'coins'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • GENERAL
    • Introduce yourself
    • Discussions
    • Showcase
    • Need help?
    • Seeking team members?
    • Offtopic
  • RESOURCES
    • Example Projects
    • Scripts
    • Shaders
    • Unity Tutorials
    • FPS Kit Tutorials
    • 3D models
    • Animated 3D Models
    • Graphic design
    • Textures
    • Sounds
    • Other
  • SELL | REQUEST
    • Sell
    • Request
  • Mars' Modular Multiplayer Photon FPS Kit's Topics
  • Mars' Modular Multiplayer Photon FPS Kit's Reviews
  • Mars' Modular Multiplayer Photon FPS Kit's Updates
  • Mars' Modular Multiplayer Photon FPS Kit's Tutorials
  • Busy People's Introductions
  • Photon's Tutorials
  • Photon's Photon General
  • Photon's Showcase

Categories

  • Free Projects
  • Free Assets
  • Game Demos
  • Photon's Files

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


YouTube URL


Facebook URL


Twitter URL


IndieGoGo URL


Kickstarter URL


IndieDB URL


GreenLight URL


Location:


Interests

Found 2 results

  1. Hello, I'm a beginner in scripting & unity and i'm currently facing some difficulties in a learning project i'm working on : - The first one : what's the best way to keep the total amount of collected coins during game : I mean even if the player plays so many times the same level or closes the application, i'd like a way to find the total collected coins so that i can use this informations when scripting a shoping scene - The second issue: right now, when i don't react in my game ( i don't anything ) the screen unlights and then the phone get locked in few seconds. I'd like to force the screen to be active as long as the game is running even if the player is not reacting. How can i implement that ? Thanks a lot,
  2. Hey Guys I just saw a few examples on how to make like Coin Collection Scripts but then I found a Script of a Guy who was stuck on a Script. He wanted to do if his player collected like 10 coins the the level would switch to the next scene. I also dont know what to do does anybody knows how to make the script working. Heres the Script: private var coinsBegin : int; private var coinsCurrent : int; var levelToLoad:int; //level to load private var coinToNext:int=10; //coin necessary to open next level function OnGUI() { coinsCurrent = 0; var coinObjects = FindObjectsOfType( GameObject ); for ( var coinObject : GameObject in coinObjects ) { if ( coinObject.name == "coin" ) coinsCurrent++; } GUI.Label( Rect( 0, 0, 320, 20 ), "Collected " + ( coinsBegin - coinsCurrent ) + " of " + coinsBegin + " coins!" ); } function Start() { var coinObjects = FindObjectsOfType( GameObject ); for ( var coinObject : GameObject in coinObjects ) { if ( coinObject.name == "coin" ) coinsBegin++; } } function Update() { if (coinsCurrent == coinToNext ) { Application.LoadLevel (2); } } Heres the Link to his question: http://answers.unity3d.com/questions/28245/collect-10-coins-load-next-levelscript-not-working.html
×
×
  • Create New...