Charas-Project
Game Creation => Requests => RPG Maker Programming => Topic started by: Deathslayer1245 on September 03, 2012, 11:51:49 PM
-
Im using Rpg Maker 2003. I went to a site and saw a tutorial to make a minigame where you have to press the correct arrow keys in a set time. I tried using the coding and put it all correctly only altering key delay, the target sucess, the random x and y variables and the messages. When i tried to use it on the map my game just freeze'd up. Maybe i put something wrong or maybe its because its a lot of coding. Im hoping that somebody can help me out with this, and if possible tell me how i can implement this as a battle system. Thanks.
Here's the coding:
-
Two things.
1: What is the purpose of doing this? There might be an easier way of coding it.
2: As a rule of thumb you should always create a blank map for the purpose of testing. Sometimes events collide and cancel each other out.
-
1. Im trying to see if i can't use the arrow minigame as a battle style to make my game more fun and unique. If i can't i might just use it as a minigame were players can relax and do smoething different besides the "tap till they're dead" battle style.
2. Tried it as you said and it still froze up.
-
I take it someone recently played Sequence? XD
"Sequence" Gameplay (Spasmodic) (http://www.youtube.com/watch?v=pFN4axm46Us#ws)
This might be a little difficult to pull off, I'll need to think this over. In the mean time if anyone else wants to step up and give it a shot be my guest. :)
-
I've done it before as a mini game where you are picking mushrooms and have to press the right arrows at the right time to pull the mushroom without breaking it.
So yeah... it is doable.
-
Don't really get the point of all those event commands.
This is pretty much what you'll need. a switch to be on or off for the time. 1 variable that decides the arrow you have to press, 1 temp variable to store what button you just pressed.
Let's create the main event, paralel process and all.
Set switch "Arrow time" ON
Create a label(1)
IF arrow time is ON
var set random : arrow, 1-4
Key input, (the temp var) wait till key is pressed.
IF temp = arrow
SUCESS! Not sure what you want to happen here so I'll just leave it blank.
After the success add a "jump to label 1" and it will repeat as long as the switch is ON.
Else (if temp /= arrow)
Play sound: failure
Switch Arrow time OFF
Else (if arrow time is OFF)
End event
Not sure what you want to happen when the time runs out.
But that's right. Time.
So create a paralell process, precondition that the switch Arrow time is ON, paralell process.
Create a variable for time.
Make this loop:
IF time < 30
Var: time add 1
wait 0,9 seconds
else
Switch Arrow time OFF
Explainations is in order.
First event just loops and asks you to press the right button. Either make an arrow appear on screen using the value of Arrow (1-4, 1 is down, 2 is left, 3 is right and 4 is up) or do something fancy with pictures and stuff.
It will stop looping when the switch is OFF
The "clock" event will add 1 to a variable each second, when it reaches 30 it will turn the switch OFF and end the sequence inputting thingy. Just make sure to reset this variable if the event is supposed to continue repeatedly.