Event to Event???

IMHunter

Elite
Member
Joined
Aug 7, 2013
Messages
16
Reaction score
1
First Language
english
Primarily Uses
Well, i'm making a block puzzle where you have to push the block on a button...

when the block hits the button, i want something to happen... But i don't know how to trigger the button using the block!!!

Can anyone tell me a simple way on how to do this???

Thanks in advance
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Normally you don't try and make one event activate another. You just use multiple pages on each event, conditioned by switches, that show the event in its desired state at that time. And on the event you're controlling (the block), you'll turn on that switch when you want them both to change their states.


So, on the block event, every time it moves, put its X and Y coordinates into variables. Then check the variables and see if they are the same as the coordinates of the button. If they are, turn on a switch called 'Button Pressed' or something like that. Then on the block, add a new event page conditioned by that switch, without the movement commands (so player can't keep moving it around once it's in position). And on the button, add a new event page conditioned by the switch, that looks like it's pressed down.


If you want OTHER things to happen as well (maybe a door opens or something appears), also add that logic to the block event under the 'block is on button' condition.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,674
First Language
German
Primarily Uses
RMMV
no, because events can't trigger other events by default.

There are several ways around this, but they require a bit of knowledge on eventing and on parallel processes - make the button a picture only, and have a parallel process common event check the current coordinates of the block event - if that event is on the correct position, have the checking event turn a switch.

Alternatively you might search for a script that enables an event-to-event trigger - I believe there are one or two, but I don't know if they're compatible with your game.
 

IMHunter

Elite
Member
Joined
Aug 7, 2013
Messages
16
Reaction score
1
First Language
english
Primarily Uses
Im so sorry if this is annoying... im newb...

But how can i check the variables and variable for the block and all that jazz... 
 

Dark_Metamorphosis

What a horrible night to have a curse.
Veteran
Joined
Nov 23, 2012
Messages
2,192
Reaction score
382
First Language
Swedish
Primarily Uses
Im so sorry if this is annoying... im newb...

But how can i check the variables and variable for the block and all that jazz... 
You can read up on variables, switches and conditional branches. I think it would be pretty hard to explain everything if you don't have the knowledge of what these do.

Other than that you create a variable that checks the X and Y coordinate for the event in question, and put the correct coordinates for when the block is over the button, as a condition for the switch to turn on.
 
Last edited by a moderator:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,674
First Language
German
Primarily Uses
RMMV
Im so sorry if this is annoying... im newb...

But how can i check the variables and variable for the block and all that jazz... 
Follow the link in my signature - it will lead you to the most important tutorials and tips.

Especially play the variables guide linked in there - if you don't have a good knowledge of switches and variables, you won't be able to make puzzles or quests in your game.
 

IMHunter

Elite
Member
Joined
Aug 7, 2013
Messages
16
Reaction score
1
First Language
english
Primarily Uses
Follow the link in my signature - it will lead you to the most important tutorials and tips.

Especially play the variables guide linked in there - if you don't have a good knowledge of switches and variables, you won't be able to make puzzles or quests in your game.
Thak you!!!
 

Beniwa

Villager
Member
Joined
Dec 24, 2012
Messages
23
Reaction score
0
First Language
English
Primarily Uses
Yeah, Reading up variables, switches, self-switches and conditional branches will explain most things. I personally make a variable called  "progression" which I reduce as i move along "check points", which may or not activate another event. I chain events all the time. Variables and conditional branches + self-switches are amazing.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,860
Messages
1,017,038
Members
137,568
Latest member
invidious
Top