Home
Help
Search
Calendar
Login
Register
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Click here to join us on IRC (#charas on irc.freenode.net)!
Charas-Project
»
Game Creation
»
Requests
»
RPG Maker Programming
»
Key problem(help)
« previous
next »
Print
Pages: [
1
]
Author
Topic: Key problem(help) (Read 1728 times)
DarkGoten
Gfx master
Initiate
Posts: 15
Key problem(help)
«
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<.<
Logged
Daetyrnis
Zealot
Posts: 616
(No subject)
«
Reply #1 on:
March 13, 2007, 02:03:38 AM »
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.
Logged
Print
Pages: [
1
]
« previous
next »
Charas-Project
»
Game Creation
»
Requests
»
RPG Maker Programming
»
Key problem(help)