Using the isometric game template for inspiration, I created another example. If your project moves the camera then the random x,y needs to be based on the characters x,y. I added events to set the start position of the objects and then pick a random location based on a range from the character’s starting position. I set the distance to a small value for demonstration. I also added events for animation and to enable/disable the movement based on the distance from the player using the MovementDistance object variable with a little extra space. The movementDistance is based on a circle from the starting position and not a square. So, if it’s 100 then it’s 100 in each direction.
try me: I added a happy face as the player. it uses the default cursor controls to move
project: