Detecting actor's position on the screen
TouchTiltGames
Member Posts: 1,162
Hmm I had thought that if I used position.x and y To an attribute's x and y that I could detect where the actor is on the screen but that doesn't seem to be working.
Just trying to trigger an animation determined by if the actor is < or > on the Y and < or > on the X...
Just trying to trigger an animation determined by if the actor is < or > on the Y and < or > on the X...
Comments
This looks great but it looks like it is determining the distance between two actors, I'm just trying to detect if: the actor is moving up, down, left or right Then: perform animation based on that.
I think I could probably use what you have though but by constraining the actor and then use an if greater or less than on both planes?
Cheers,
Shane