Making an actor slow down at a certain point

charliehgreencharliehgreen ArizonaMember Posts: 233
Hello,

So I was trying to figure out how could I make an actor slow down once Score = X for X amount of time.
I just can't get it :( Ughh!!! I've been trying for a while now.

Could you all please help me?

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited May 2013
    It depends how you are moving the actor in the first place, but let's assume you are using a Move behavior. In the Move behavior, use a game attribute (e.g. game.speed, real) for the speed. Then use a rule like this:

    When attribute game.score=500
         Change attribute game.originalSpeed to game.speed
         Change attribute game.speed to game.speed/2
         Timer after 5 seconds (run to completion checked)
              Change attribute game.speed to game.originalSpeed

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • charliehgreencharliehgreen ArizonaMember Posts: 233
    Yes, I'm using a move behavior.
    Hmmm this sounds like it will work, I'll try this tonight.

    Thanks for the tip
Sign In or Register to comment.