Charas-Project
Game Creation => Requests => RPG Maker Programming => Topic started by: DarkGoten on March 12, 2007, 11:49:48 PM
-
I'm makinga flying demo for a friend but I want it to work like this.
If key pressed(down) I will fly if I let go of the key I will go into a stand alone frame that goes up/down until I move again.
I did this once but can't seem to get this working, 3 months outa rm2k3 and I forgot allot<.<
-
Since the flying object is the hero (I assume) the bobbing up and down will be slightly more complicated, if it's that important just ask again, m'kay?
First, make a variable called [Flying Input].
Make an event on the map (or a common event if it's for all maps) and give it the name [Flying Graphics]. Start with a change variable command and set [Flying Input] to 0. Now, insert a key input processing command with the following specifications.
-Alters the [Flying Input] variable
-Do not wait until key press
-Only the four directions are checked (1, 2, 3, and 4)
Now, after that command put a conditional branch that checks if [Flying Input is not 0 (it's the last option in the dropdown box with the "Equal, Above/Equal, etc." options). Make sure ELSE is checked.
In the first handler, put a change hero graphics command and select the moving graphic. In the ELSE handler put another change hero graphics command and set it to the still graphic.
Make sure that the event is set to Parallel Process (or Continous, depending on your translation).
Hope that was simple enough to understand.