In my top down game I am trying get enemies to be pinned to the player at a specific image point, when an enemy is overlapping the player boundary box and a key is pressed. Using an instance variable, pressing the same key will unpin the enemy from the player.
Not sure what I am doing wrong. Example in the capx below:
[attachment=0:ufrh3rmr][/attachment:ufrh3rmr]