After a very long morning trying to figure out how to do this on my own, I have finally given up and registered with your forum for some help. This is my first post, please be gentle.
Ok, so what I have been working on is an animated title screen with a flashing "press start" that plays for 20 seconds or so before switching to a scrolling "high scores" table. I want this on a loop until player input button C, at which point it takes the player to Scene_Map and it starts the game. You know, like an old arcade game.
What I have achieved so far:
I have my animated title screen (labelled Scene_Intro not Scene_Title because the actual title menu comes later on) and a functioning scrolling high scores table (Scene_HighScores). I have written them so that they each wait and play their animations for a while before switching to the other. So I have my loop.
My problem:
I can not figure out how to break the loop on button C input. I'm sure their is a simple solution, but i'm very new to this scripting lark.
Here is the script that creates the loop and animates the elements in the scene:
def wait(duration) duration.times { Graphics.update } end def update super for i in 1..1000 update_object_animation update_object2_animation update_object3_animation @background.ox+=2 @clouds.ox+=1 wait(1) end SceneManager.goto(Scene_HighScores) endIt plays all animations for 1000 frames with a waiting time of 1 between each frame, and creates a loop with Scene_HighScores which has pretty much the same piece of script but with "SceneManager.goto(Scene_Intro)" instead.
How do I get Input C to start the game?