Changing Image's alpha settings problem?!

GuaveMediaGuaveMedia Member, PRO Posts: 1,262
edited November -1 in Working with GS (Mac)
I programmed that when my actor is colliding with a star, attribute starCollect is changed to game.starCollect+1,

if the acorn collects a star, another star on the edge appears to show that the actor hit the star, I changed the alpha settings to 0 and said:

when attribute game.starCollect > 0
change attribute self.colour.alpha to 1
and it works :))

But if I want to do the same for another star, I thought just saying:
when attribute game.starCollect > 1
change attribute self.colour.alpha to 1...

But that doesn't works ://

Comments

  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Somehow it doesn't work :// first star get's alpha to 1 but for the second and third edge star, nothing happens...
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Done :D yes .....!!!!

    Problem was that I defined "when collide with actor change attribute game.starCollect to starCollect + 1 only at one star, now I did for the second... change to 2 and now it work's...
Sign In or Register to comment.