Score According to Height?

LACvirtualLACvirtual Member Posts: 3
edited November -1 in Working with GS (Mac)
Is this possible?

I am making a game kind of like Avalanche and I would like the score to be how high My actor is.

Is there a way for the score to go up 1 for every pixel reached? and then Back down if he falls? I would almost be tracking his Y position,

Comments

  • RHRH Member Posts: 1,079
    Create an attribute called 'Score'.

    Then on your character actor add a constrain behaviour and add:

    constrain attribute game.score to self.postionY
  • LACvirtualLACvirtual Member Posts: 3
    Thank You it worked Perfectly :)
  • RHRH Member Posts: 1,079
    No problem, have fun adapting it to your needs :)
Sign In or Register to comment.