- Home /
Question by
FatalNightmare · Dec 31, 2012 at 09:57 PM ·
animationmenujava
Main Menu Java Coding Help
Hello, I know that usually main menu coding is simple but for some reason my scripts are never working. So, can someone help me with some code for a simple main menu. Like so that if the player hits Play it goes to level1 and if the player hits credits an animation happens. Any help would be great! Thanks!
Comment
There are lots of ways to tackle this. Why don't you post a snippet of one of your scripts and let us start from there? You always get better answers when you show what you've tried so far.
Wiki
Answer by DryTear · Jan 01, 2013 at 03:07 AM
OnGui(){
if(Rect(GUI.Button(20,20,100,30),"Play"))
{
Application.LoadLevel("Level1");
}
}