Detecting actor's position on the screen

TouchTiltGamesTouchTiltGames Member Posts: 1,162
edited November -1 in Working with GS (Mac)
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...

Comments

  • TouchTiltGamesTouchTiltGames Member Posts: 1,162
    Awesometown, thanks G.

    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?
  • TouchTiltGamesTouchTiltGames Member Posts: 1,162
    Whaaa? Get-outta-town haha.
  • TouchTiltGamesTouchTiltGames Member Posts: 1,162
    Thanks so much, I'll try this over the weekend!

    Cheers,
    Shane
  • TouchTiltGamesTouchTiltGames Member Posts: 1,162
    Thanks, TSB that worked :)
Sign In or Register to comment.