Help with Scoring

scitunesscitunes Member, Sous Chef Posts: 4,047
edited November -1 in Working with GS (Mac)
If you clicked on this thread for dating advice you are at the wrong site! :-P

Anywho...

I am trying to make a doodle jump type game (with a few weird and hopefully fun twists) and I am trying to think of a way to do the scoring. I want the score to be based on how high you get, but I don't want to simply display the Y value for the main actor because then it will go up and down with each jump. I would like the score to calculate the max Y of the actor. Then when you get to the next level this value needs to be stored so you can keep adding to it.

Any ideas on how to do this?

Comments

  • scitunesscitunes Member, Sous Chef Posts: 4,047
    Would it work to make a rule that says when linear.velocity.y is >0 change game.score to position.y or something like that?
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    Try this:

    create an attribute called Score

    then create a rule:
    when player.Y > game.Score
    update attribute game.Score = player.Y

    in theory, every time the Y value goes above score, it'll update.
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    good idea! I can't wait to try it. I'll let you know.

    Thanks a lot!
Sign In or Register to comment.