Upgrade system with coins

Hi
I want a make a Upgrade system with coins, but a don't no how can i do this:

when touch the buy button change images of the game hero (actor).

So when i touch one actor how can change another actor images

Hope it's understandable.

Comments

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922

    Everything in gamesalad is logic based conditional statments based on variables. I would reccomend watching my video series on GSlogic.

    and image in gamesalad can be called by it's name. You can make a game level integer called Hero_image. Then you can change that number say 1-5 for 5 different images. Label all the hero images 1hero.png, 2hero.png et...

    Put this code in you hero actor constrain attribute self.image to game.hero_image.."hero.png"

    Now if you change game.hero_image to 2 the actor will now have image 2hero.png. If you change it to 1 the actor will change to 1hero.png.

Sign In or Register to comment.