Record Character Position

GSExtremeGSExtreme Member Posts: 65
edited November -1 in Working with GS (Mac)
I want to record constantly the character position and when he jumps a bit out of the screen (the height is 800) so when he exceeds 900, his life is set to 0.....

Comments

  • UtopianGamesUtopianGames Member Posts: 5,692
    You need 2 real attributes charX charY (call these what you want)

    Now in your character actor use 2 constrain attributes charX to self.PositionX and charY to self.PositionY

    For the jump out of screen you can do 1 of 2 things.

    Either use a rule in your character actor if self.positionY >900 change attribute life to 0

    OR

    If you have another actor like a controller you could use if charY > 900 change life to 0.

    Darren.

    image
  • GSExtremeGSExtreme Member Posts: 65
    thanks a lot
Sign In or Register to comment.