Animation of actor?? need help

Uplink1001Uplink1001 Member, PRO Posts: 64

HI.
Can anyone solve this for me (frustrated)
i have a score counter, next to it i have an actor which i want to animate every time the score changes.
anyone HELP.....

Thanks
Uplink1001

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    When [event to change the score]
         Change Attribute game.score to game.score+25
         Change Attribute game.startAnimation (boolean) to true

    Then in your animate actor:

    When attribute game.startAnimation is true
         Animate
         Timer after 1.3 seconds
              Change Attribute game.startAnimation to false

    Note that I chose 25 arbitrarily and that 1.3 seconds would be equal to the duration of the animation sequence.

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

  • Uplink1001Uplink1001 Member, PRO Posts: 64

    Thanks for the Quick response tatiang..... :)
    will give that a try and get back...
    Thanks again.

  • Uplink1001Uplink1001 Member, PRO Posts: 64

    Hi again tatiang
    That worked a treat, everything fine and dandy now.

    Thanks again

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited March 2015

    You're welcome! You can think of game attributes (aka global variables) as a place to store values that multiple actors need or as a way to communicate between actors by changing the value from within one actor and checking the value in another actor(s).

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

Sign In or Register to comment.