Rocks falling event help.

I want a bison to push a boulder off a cliff and when it touches the player, they get hurt, the boulder continues to roll off another cliff and then a new boulder will appear (It's actually the same boulder) for the bison to push off the cliff again. Everything works; except I can't get the boulder to go back to its original spot in front of the bison. The boulder keeps infinitely rolling against the edge of the map.

Here's how I have everything set up:


Bison Page 1.png

Bison Page 2.png

Rock.png



EDIT: There's a new issue, please check the 4th post for more info!
Probably means your boulder's moveroute is longer than the map and since it can't complete the moveroute, it's stuck.
Completing the answer by @SGHarlekin, try to check/tick the "skip if cannot move" in movement route of the boulder.
Probably means your boulder's moveroute is longer than the map and since it can't complete the moveroute, it's stuck.
Completing the answer by @SGHarlekin, try to check/tick the "skip if cannot move" in movement route of the boulder.
*Facepalm* It was that simple! I'm dumb. Thank you so much you two, it works perfectly now!

EDIT: No it doesn't. I messed up by making it go through stuff because it needed to pass through the rock walls and then it wouldn't hurt the player anymore. I tried to fix it and now I just made everything worse.

The player is safe on the very topmost square as the boulder falls onto the grass, I do not want that to happen. And now the boulder becomes harmless and moves through the player as it rolls through the grass. And it also respawns in front of the bison before it falls off the edge. WTF did I do wrong and how do I fix it so that the boulder is able to both pass through the rock walls and hurt the player if they are in its path while it's on the grass???

Here's the set up and the map:

Rock issue.png
Boulder map.png
Can you show us also the rock event?
Can you show us also the rock event?
Sure, here:

Rock.png
I think the player is safe on the top square because you have: through ON, wait 2 frames, through OFF after the jump command - not sure why did you put that there? Try making it like: through ON, jump, through OFF?
I think the player is safe on the top square because you have: through ON, wait 2 frames, through OFF after the jump command - not sure why did you put that there? Try making it like: through ON, jump, through OFF?
I did that and now the player is only getting hurt while standing on the top space of grass and nowhere else and the boulder is resetting before it falls off the second, larger cliff.
Yes, you should put "through ON" before the second jump to continue the rolling. Also, I would set the "priority" for the rock as "above character" - so the rock can't be stopped by the player, but can be smashed. Try this and see what's happen?
Yes, you should put "through ON" before the second jump to continue the rolling. Also, I would set the "priority" for the rock as "above character" - so the rock can't be stopped by the player, but can be smashed. Try this and see what's happen?
I did that and the rock still respawns before it falls off the other edge and now the player can only be hurt if they are moving.
Put the through on before the jump and turn off skip if can not move, that way you can see where your moveroute is incorrect, because the boulder will get stuck and you can actually fix it... It's not a good idea to use that here, where you want precision movement. I'm assuming it's skipping the jump because it can not move into the wall, then through is on so it moves down, but ultimately the moveroute is too short due to the skips to reach the end of the map.
Put the through on before the jump and turn off skip if can not move, that way you can see where your moveroute is incorrect, because the boulder will get stuck and you can actually fix it... It's not a good idea to use that here, where you want precision movement. I'm assuming it's skipping the jump because it can not move into the wall, then through is on so it moves down, but ultimately the moveroute is too short due to the skips to reach the end of the map.
The rock now gets stuck before it reaches the grass.
Rock issue in game.png


This is how my rock's movement looks like after I did what was suggested. IDK if I did it right, though. (The site does not want me uploading pics at the moment, so I'll just list the moveroute.

Change Speed: 5
Change Frequency: 5
Through ON
Jump +0 +1
Through OFF
Down
Down
Down
Down
Down
Through ON
Jump +0 +1
Down
Down
Down
Down
Down
Through OFF
You need to use jump +2 or use move down once before putting through off. The boulder is on the wall and can therefore not move, since through on is already turned off at this point.
I originally had it at jump +2, but the player wasn't able to get hurt as the boulder fell onto the grass. Having through on while the boulder is on the grass also makes the boulder not able to touch the player and hurt them.
That's just how it's going to be to be honest. Alternatively what you'd need to do, is use a separate common event that constantly checks the location of the boulder and the player, save both in separate variables, and if the match, damage the player. That way, the "hitbox" of the boulder doesn't actually matter.

You could also try yanfly's region restrictions. Set up a region on the wall that's passable for the events but not the player. That way the boulder should be able to move freely. In this case you would use jump +1 and move down 1, that should result in the player getting hit.

Edit: Ah, not yanfly for you. Visustella, since you're on MZ.
I originally had it at jump +2, but the player wasn't able to get hurt as the boulder fell onto the grass. Having through on while the boulder is on the grass also makes the boulder not able to touch the player and hurt them.
Oh yes, you actually can't avoid that. This is how the engine works, so you need to choose the solution @SGHarlekin is talking about. If the cliffs are unpassable, you need to have the "through", and if you have it, the player can't be "hit" by the boulder because it's "a ghost" for everything atm.

And right, it should be +2 instead of +1.
you could try using this in a parallel event. use a conditional branch script
$gamePlayer.x === $gameMap.event(##).x && $gamePlayer.y === $gameMap.event(##).y

here's some screens of how i got it setup in my project.
one is the event tracking the players location and event direction. if you dont need that you can remove that part.
the other is the object itself, in this example the spiked ball.

if you need to with this you can set "through" and as long as the player x/y matches the events x/y you can trigger it to hit or do what ever you want.
That's just how it's going to be to be honest. Alternatively what you'd need to do, is use a separate common event that constantly checks the location of the boulder and the player, save both in separate variables, and if the match, damage the player. That way, the "hitbox" of the boulder doesn't actually matter.

You could also try yanfly's region restrictions. Set up a region on the wall that's passable for the events but not the player. That way the boulder should be able to move freely. In this case you would use jump +1 and move down 1, that should result in the player getting hit.

Edit: Ah, not yanfly for you. Visustella, since you're on MZ.
I didn't think to use Visustella's Core Movement to do that! It worked and I tweaked stuff so it looks better. It works perfectly! Thank you so much for all the help, all of you.

Original thread: https://forums.rpgmakerweb.com/threads/rocks-falling-event-help.174548/