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:
New forum theme up and running!
Charas-Project
»
Game Creation
»
Requests
»
RPG Maker Programming
»
Probably a stupid question...
« previous
next »
Print
Pages: [
1
]
Author
Topic: Probably a stupid question... (Read 1945 times)
Linkforce
The Original Master of the Mosey
Leader
Posts: 2,330
i love rpgs
Probably a stupid question...
«
on:
January 07, 2010, 07:39:43 AM »
Hello chars, it's me again! I come bearing more questions and begging for more help!
I'll cut to the chase.
I'm currently trying to make a mini game in my game. It's a lot like Simon Says in the sense that it's just like Simon Says. What happens is that these different colored objects come out one at a time and its up to the player to memorize them and then approach each object and click on it in the order they came out. This is where I need help.
I don't know how to make it so you have to click on the objects in a specific order. Like for example:
If the colors are RED, BLUE, RED, I don't know how to set it up so when you click on RED, you HAVE to click on BLUE next or else it restarts and you have to start all over. I'm pretty sure it works the same way if you start with BLUE when you should click RED first. Can anyone help me with this? Or at least point me to a tutorial like this? It would be greatly appreciated. Thank you!
Logged
Prpl_Mage
Administrator
Sage
Posts: 7,644
The Administrator Mage
Re: Probably a stupid question...
«
Reply #1 on:
January 07, 2010, 10:47:20 PM »
There might be an easier way.
Using only a variable and a bunch of event pages.
You have three objects I assume.
One red, one green and one blue.
The variable[simonsays] is set to 1 after the event is played(that show the order).
Then on the RED object:
the first page is blank, so it will play if no other preconditions are met.
Something like:
Play sound: failure
Set variable [simonsays] equal to : 0. (in other words, the entire thing is resetted)
Second page you have the precondition "variable Simonsays is equal to 1.
Play sound "jingle1"
Variable [simonsays] add 1. (or set equal to 2, same thing in the end)
Then you might as well add a third page while you're at it.
precondition variable "simonsays" is equal to 3.
play sound jingle1
variable: add 1/set equal to 4.
Then we have the blue object.
First page same thing as the first red page.
Second page:
precondition simonsays equal to 2.
play sound jingle
add 1/set equal to 3.
PS: instead of having pages - you can use conditional branches; same thing in the end, different roads.
---------------------------------------
And there you have it.
The event that starts it all only activates when the variable is 0. Then it increases it to 1.
if the variable is 1 - the red object will react(it's the first object)
it makes the variable get the ammount 2.
when the variable is 2 - the blue object will react and increase the variable by one(it's the second object)
when the variable is 3 - the red object will react again and increase it by one. (third object)
Then have an event check when the variable is 4( you managed to click right all times) and play whatever is supposed to happen afterwards.
And if the precondition of the Objects doesn't match - the varaible will be reduced to 0 and you'll have to watch the first event again.
I hope that made sense.
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
»
Probably a stupid question...