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
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.
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.
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...
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.