Boulder puzzle

Hey guys! So I'm trying to make a few traps/puzzles and there's 1 I can't seem to find or figure out.

Basically what I want to do is there will be for example a hole and I can't cross over the hole and the hole is the only way past, I want it so when I push a boulder I can make it fill the hole being able to walk across it.

Anyone have any tips or ideas? Screenshots might help thanks guys!

(doesn't necessarily have to be a boulder)
have the event that handles the boulder pushing (usually on the boulder itself and on player touch) check if it is placed on the hole event.
(for example with get location info)
if yes, have it turn a switch that makes the boulder vanish and the hole event switch to a page where it is no longer an impassable hole but a passable filled hole.
have the event that handles the boulder pushing (usually on the boulder itself and on player touch) check if it is placed on the hole event.
(for example with get location info)
if yes, have it turn a switch that makes the boulder vanish and the hole event switch to a page where it is no longer an impassable hole but a passable filled hole.
Yeah I tried this, what I did was make 2 events, 1 hole event and 1 boulder event, once the boulder lands on the hole event make a switch for both to change . But unfortunately it seems that when 2 events land on each other the game freezes

(using x and y variables to pin point trigger for new event switch )


Get location info??? What do u mean exactly by that
He means this
index.php

With that you can get either an event ID or a Region ID based on two variables (your event X and Y coordinates). You can either check for the other event (which I do not recommend) or assign a certain Region ID to the tile below your hole event and directly turn on a switch when you reach that location.

The main reason behind that is that the algorithm to check a region ID is faster (T(N) = O(1)) than the one to check if an event is there (T(N) = O(N)).
But unfortunately it seems that when 2 events land on each other the game freezes
no, that assumption is wrong. the freeze has to be caused by doing something wrong with the events or the switches, the game can handle any number of events on the same position (although only one can be triggered in such a case)
EDIT:
Give us screenshots of your events and we can tell you what you did wrong.
So instead of using an x and y variable for this method I've changed it to a set event location method, where I've set boulder 1 and vines to the middle event, vines is below, boulders is character you'll see from pictures uploaded .

Even with a different method if I push the boulder off the set event, the game freeze

So now the scenario is "push a boulder off the vins to get the vines"
You can use Alt+PrtScrn to take a screenshot of the active window, paste it in MS Paint or any image manipulation program, and then upload it here. It makes your file much smaller and easier to read (no perspective, reflection or any other thing is involved). Keep this in mind for the future.

One of the possible solutions is (for the boulder itself):
Code:
@> Play SE
@> Set move route:
:  Through: ON
:  Move away from player
@> Control Variables: Get Event X and store it somewhere
@> Control Variables: Get Event Y and store it somewhere
@> Control Variables: Get Location Info (event ID at stored coordinates)
@> Conditional Branch: Event ID == Hole ID
:  @> Control Switch: YourSwitch = ON
:  Else
:  @> Set move route:
:  :  Through: OFF
:  Branch End
@>
Page 2 should be blank and passable, and the same applies to the second page of your hole event. Both second pages should have the switch you turned on as a condition.
You can use Alt+PrtScrn to take a screenshot of the active window, paste it in MS Paint or any image manipulation program, and then upload it here. It makes your file much smaller and easier to read (no perspective, reflection or any other thing is involved). Keep this in mind for the future.

One of the possible solutions is (for the boulder itself):
Code:
@> Play SE
@> Set move route:
:  Through: ON
:  Move away from player
@> Control Variables: Get Event X and store it somewhere
@> Control Variables: Get Event Y and store it somewhere
@> Control Variables: Get Location Info (event ID at stored coordinates)
@> Conditional Branch: Event ID == Hole ID
:  @> Control Switch: YourSwitch = ON
:  Else
:  @> Set move route:
:  :  Through: OFF
:  Branch End
@>
Page 2 should be blank and passable, and the same applies to the second page of your hole event. Both second pages should have the switch you turned on as a condition.
Thank u for time and effort people. Just like to say, website will not let me sign in via PC but thank u for altprint screen tip will use that in future if I can sign in!

The way I figured out both problems I will post how now ..
For boulder into hole being able to walk past pics uploaded , I made a parallel which controls variable x and y of boulder to the location of where u want it to go, once it lands on location makes a switch turning everything on making it able to walk past

I found the biggest tip was simple , with the vine problem and possibly boulder hole problem, the hole and vine must be a certain type of picture for example, once switch is active the picture must be able to walk over and boulders must be made sure to be set to skip if cannot proceed.

Game was freezing because boulder was not skipped, it would climb up and down vine but not side to side making the boulder stuck if I pushed side by side.
So picture would have to be able to push side by side aswell depending Ur scenario of what your making

Sorry if it sounds confusing if noone gets it ill try to explain again 🙂 thanks
Just like to say, website will not let me sign in via PC
if that happens your browser on the PC contains a defective cookie for the site, and you need to clear its cache or delete the cookie manually to enable logging in again.
clearing the cache clears all logins (not only for this site), but usually if this happened the other sites will also have damaged cookies (rarely one alone that gets damaged)
Sorry just also had another question,

Wondering if anyone knew on if for example if I had 5 boulders and 5 holes , letting any 1 of the 5 boulders activate the first hole out of 5 holes and so on?

If you know what I mean just wondering the method
absolutely no problem - the event that moves the boulder just needs to check which hole it found (coordinates or ID or whatever) and then turn on different switches based on that.
I made a parallel which controls variable x and y of boulder to the location of where u want it to go
I just cannot understand why you did this (which runs each frame) instead of following the pseudo-code in my previous post (that only checks it when moving the boulder). Why do you even need a parallel process for that?

On top of it, if you do it the way both Andar and I suggested, you can obtain the event ID (or the region ID at your stored coordinates) and turn on a switch according to that, which removes the necessity of having to use a different conditional branch each time.
Sorry but I couldn't understand I tried but failed so I just used an alternative way that worked I usually understand more with videos

Original thread: https://forums.rpgmakerweb.com/threads/boulder-puzzle.111451/