Star count at the end of a level

ElemetAppsElemetApps Member, PRO Posts: 55

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?


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

    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

  • jorkosjorkos Member, PRO Posts: 353

    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"

Sign In or Register to comment.