make a game attribute: starscollected then put 3 stars on the bottom screen. Give the stars the behavior: change attribute: self.color.alpha to 0. then give your character or the stars in the game this rule: when overlapp/collide with star/character then : change attribute game.starscollected to game.starscollected+1 give the first star on the bottom this rule: when attribute game.starscollected = 1 change attribute (i would actually use interpolate attribute if you want a cool fade to view effect) self.color.alpha to one. then do that with star one and 2 except with when game.starscollected = 2,3.
Mikhail616 said: But if I do that how will I show what they got for each level on the level select like angry birds?
have a extra attirbute for each level called highStarCount or whatever you want. Then change that attribute to starsCollected before you change starsCollected to 0 on your level reset
Comments
then put 3 stars on the bottom screen.
Give the stars the behavior: change attribute: self.color.alpha to 0.
then give your character or the stars in the game this rule:
when overlapp/collide with star/character then :
change attribute game.starscollected to game.starscollected+1
give the first star on the bottom this rule:
when attribute game.starscollected = 1
change attribute (i would actually use interpolate attribute if you want a cool fade to view effect) self.color.alpha to one.
then do that with star one and 2 except with when game.starscollected = 2,3.