I recently discovered construct. I'm trying to figure out how to make enemies spawn at a random instance of an object.
<img src="http://i49.tinypic.com/jsgh3s.jpg" border="0" />
I've managed to do this through a variable that is randomly generated every x seconds. The enemy sprite teleports to one of the pink squares.
<img src="http://i48.tinypic.com/358s7r6.png" border="0" />
What I would to do now is have the enemy sprite avoid a square when the player is overlapping it.
I'm having a hard time coming up with a solution for this.
Is there perhaps a way to make a reference to an instance variable instead of the UID?
Here's the .capx file: