Boulder Escape/Enemy Avoiding

I figured due to the similar nature, I'd ask both of these questions in one post.


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.
Afraid this post is in the wrong section, we'll need to move it to support for the engine  you are using. Your profile says ACE, but we don't like to assume that, so should this so under ACE, or some other version of the engine?
I'm going to go ahead and move it to Ace support for the time being.
I'm going to go ahead and move it to Ace support for the time being.

RPG Maker VX Ace is the engine I'm using.
Closing. This is a duplicate thread.

Original thread: https://forums.rpgmakerweb.com/threads/boulder-escape-enemy-avoiding.72162/