Changing Image's alpha settings problem?!
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
/
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
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...