Animation of actor?? need help
Uplink1001
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
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
Thanks for the Quick response tatiang.....
will give that a try and get back...
Thanks again.
Hi again tatiang
That worked a treat, everything fine and dandy now.
Thanks again
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