Star count at the end of a level
ElemetApps
Member, PRO Posts: 55
in Help Wanted
So I have a star count system, and it works great,
but I have one problem. When my level is complete I want to through an image up on how many stars you get during that round. How would I do this?
Comments
On the end of level scene, add an actor with an image of a star. Use the replicate behavior and in the copies field put the attribute that represents the number of stars, such as game.stars. Set the size to self.Size.Width (plus a few pixels for spacing if you like).
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
the other approach is just to have one star actor with different image sets - 1-star.png , 2-star.png ... etc.
Then just have the rule, change image to game.stars.."-star.png"