Score counter counting up question

SteelCloverGamesSteelCloverGames Member Posts: 18
edited November -1 in Working with GS (Mac)
So in my game I am creating I have a player jump off a ramp. When he hits the ramp how can I make it so the score counter starts counting up and when he lands it stops?

So basically having it the user gets a score based on how far he jumps.

Is this possible?

Thanks!

~R

Comments

  • firemaplegamesfiremaplegames Member Posts: 3,211
    You need to create a global game boolean attribute called something like pleaseStartCalculatingTheScore. (you can shorten it of course)

    So when you hit the ramp, change that to TRUE.
    When you land, change it back to FALSE.

    Then have another actor, a "score controller" actor, that listens for that boolean getting switched.

    Create a new actor, called scoreController, and place it in the Scene just out of view.

    That Actor will have a Rule like this:

    Rule
    When game.pleaseStartCalculatingTheScore = TRUE
    -----[increase the score]
  • SteelCloverGamesSteelCloverGames Member Posts: 18
    Hi Sous-Chef,

    Thank you for your help. I am trying this right now but getting confused since I am still new with working inside GameSalad.

    Is there any way you could show me with screens or break it down more for me?

    I am so grateful for your help.

    Thanks!
  • SteelCloverGamesSteelCloverGames Member Posts: 18
    Am I missing something? Still can't get this to work. Also what happens if I have a hazard the actor is jumping over...if it doesn't hit the landing zone wouldnt the counter for the score keep going.

    How do I prevent that?
Sign In or Register to comment.