GameSalad

Want to change a txt counter to use images instead

sinbotsinbot Posts: 32Member, BASIC

I want to replace my crappy looking txt count with images but I'm a bit nervous about messing it up since it does work 100% right now. I only need 0,1,2,3 to appear. What would be the best way to run that? Here is my current setup..

Comments

  • tatiangtatiang Posts: 11,149Member, Sous Chef, PRO, Senior Sous-Chef
    edited February 7

    Instead of your Display Text behavior, use a Constrain Attribute behavior and constrain the actor's self.Image to game.EGGS. Or for better performance, add a Change Attribute behavior below each of the existing ones above so that they look something like this:

    Change Attribute game.EGGS to game.EGGS+1
    Change Attribute self.Image to game.EGGS

    etc.

    Your image files should be named 0.png, 1.png, 2.png, and 3.png.

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

Sign In or Register to comment.