[RPG MAKER VX ACE] Boulder/Enemy Script

Since I was apparently somehow not specific with what engine I was using, I am using RPG Maker VX Ace. I'm pretty sure this is in the right support forum. I'm hoping to finally get answers on my issues rather then people just telling me that I put it in the wrong place.


I need help with the following stuff.



1) The Boulder Escape- I have an area where'd like to have this object that chases/moves toward the player. If it touches them, it's an instant game over. I'd like to know I'd go about this in the script/Contents tab.


2) Enemy Avoiding- This goes in with the top and why I'm asking this in the first place. I tried to makes this one section in a dungeon where there are events that walk back in forth on a narrow platform that you have to manuver past and that, when you make contact with them, it triggers a battle. However, touching them seemed to do nothing. And when I'd try doing stuff like (Event1 X & Y = Player X & Y; Do this) I didn't work because it triggered even if they were not close. How do I get it to trigger when they touch? This is what made me ask the question, as I'll need to know how to do this if I want to do the boulder escape part.
Why not set the event as player touch trigger and handle the movement via the custom move route option of events...
Why not set the event as player touch trigger and handle the movement via the custom move route option of events...

I remember trying that, it didn't seem to work.
@Engr. Adiktuzmiko I mean, it seems to work, but only when you are facing the event, but I wanna make it trigger if you touch it AT all.
metalmario991, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.



Next time please edit your original post instead.


As for the boulder problem, what you need to do is set the boulder to event touch, same as player, and inside the event, have it run game over. That will give a game over whenever the boulder hits the player. If that is not working please post a screenshot of your boulder event (all of it) as well as the move route you set for the boulder event. That way we can see what is going on.
I think you need to show screenshots of your event.  To make an event follow the player, set its move route to Approach.  To make an event that moves back and forth and does something when it touches the player, use the Autonomous Movement to set the back and forth movement, and Event Touch, Same as Characters, as others have said.


You should not need to check the player's and event's coordinates in order to make either of these work.


To post a screenshot, please use alt+printscreen as it captures the full event window but not the rest of the desktop.  This means we get to see pretty much all the information we need (which doesn't happen when people just try to describe their setup in words, or when they take a screenshot and crop it), at a size that's easy to read.
then try event touch, that should work...
@metalmario991 When a thread is moved, you continue posting in it in its new location.  There is no need to start a new thread.


I have closed your other (original) thread as there are answers in this one.

Original thread: https://forums.rpgmakerweb.com/threads/rpg-maker-vx-ace-boulder-enemy-script.72346/