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
»
Arrow minigame coding error (Rpg Maker 2003)
« previous
next »
Print
Pages: [
1
]
Author
Topic: Arrow minigame coding error (Rpg Maker 2003) (Read 4082 times)
Deathslayer1245
Initiate
Posts: 11
Arrow minigame coding error (Rpg Maker 2003)
«
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:
Logged
greenraven
That Guy
Zealot
Posts: 505
Re: Arrow minigame coding error (Rpg Maker 2003)
«
Reply #1 on:
September 03, 2012, 11:59:26 PM »
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.
Logged
Deathslayer1245
Initiate
Posts: 11
Re: Arrow minigame coding error (Rpg Maker 2003)
«
Reply #2 on:
September 04, 2012, 12:44:59 AM »
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.
Logged
greenraven
That Guy
Zealot
Posts: 505
Re: Arrow minigame coding error (Rpg Maker 2003)
«
Reply #3 on:
September 04, 2012, 02:46:07 AM »
I take it someone recently played Sequence? XD
"Sequence" Gameplay (Spasmodic)
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.
Logged
Meiscool
Staff
Exemplar
Posts: 1,138
I died for YOUR sins.
Re: Arrow minigame coding error (Rpg Maker 2003)
«
Reply #4 on:
September 04, 2012, 05:10:02 AM »
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.
Logged
Prpl_Mage
Administrator
Sage
Posts: 7,644
The Administrator Mage
Re: Arrow minigame coding error (Rpg Maker 2003)
«
Reply #5 on:
September 04, 2012, 08:16:28 AM »
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.
Logged
Cool RPGM Project!
Sprite till you die
Oh my god, this was ...10 years ago...
Print
Pages: [
1
]
« previous
next »
Charas-Project
»
Game Creation
»
Requests
»
RPG Maker Programming
»
Arrow minigame coding error (Rpg Maker 2003)