there is no default trigger for events touching each other, you'll have to do it in another way.
For example, you can check the coordinates in event that controls the movement of the rock - if he is on the coordinates with a tile where the button is places, then switch.
This will work because you will not check for another event, but for coordinates.
If your game is too variable and contains too much random positions, then you'll need a script to add more trigger types that don't exist in default.
The are a very few scripts that do this, but I don't know if there is a script that adds event-to-event triggers, you'll have to check the master script list yourself for them.
Unfortunately that won't work because my game has a lot of randomly placed switches, but thanks anyway.
define randomly placed? you mean they are automatically placed in random position and does not exist in the map while editing? or they are already in the map during editing and you simple relocate them randomly?
if it's the 2nd, you can still do the position check method... just have two sets of X,Y variables one will be used to store the coordinates of the rock, and the other will store the coordinates of the switches (you check them 1 by 1, so you only need 1 set for them)
By randomly placed I mean they are already in the map while editing and you can move any of the rocks onto them. If I used the position check method how would I change the picture of the switch to be looking pressed down?
Also, what is the position check method and how do I use it? I can't find it under conditional branch.
position check: basically you check if the position of 1 object is the same as the position of another object...
In RM we do it via saving the X and Y coordinates of the two objects into variables (1 variable for each coordinate, so we need foursince we have two X coordinates and 2 Y coordinates (1 pair for each object)), then compare them to see if the positions collide
Thank you both for helping me but I'm struggling to understand this.
So what I need to do is set up four variables with each of the positions in them. In my game the rock is at position 006,007 and the button is at position 0010,007. So I have to set up variables with the positions 6x, 7y and 10x. How do I do that? I can't find the option for that in the variables.
to get each coordinate:
Choose Control Variables
Make sure the setting is on SET
Choose Game Data
Choose Character
Find the event on the drop down list
On the next drop down choose Map X/Y
Basically, you'll do this 4 times
1 for the rock's X
1 for the rock's Y
1 for the button's X
1 for the button's Y
then if you want to check other buttons during the same event, you simply need to set the variables for the button, no need to redo the one for the rock
I set up two four variables. I have "Rock's Map X" and "Rock's Map Y" and "Button's Map X" and "Button's Map Y". In the Button event I made two conditional branches, one that says "Rocks map x" must be equal to "buttons map x" and the other conditional branch says "rocks map y" must be equal to "buttons map y." Then I set for the switch to happen. But this doesn't work. The switch is already activated before the rock even moves. What am I doing wrong?
Show us the event...
You do the settings of the variable in a parallel process event or do it when you move the rock...
We need to see where you set those variables too
I already outlined a few posts back how to set them to the correct values and as I said, do it on a parallel process event... NAMING A VARIABLE DOESN'T PUT A VALUE ON IT... that's why your button becomes pushed already, because all those variables are equal to 0...
If you don't even know how to set variables, you should really read beginner tutorials first and practice the simpler things that the maker can do instead of these things...
As I said, show me the event where you set those values... We're not psychics here, we cannot know what you have done unless you show it...
Well yeah, that's faster... but really, he should learn how to use variables...
anyway, the choice is yours... XD