spawn actor by score issue
kajuto
Member Posts: 314
Hi everyone! i have a spawner that when reach to 500pts spawn 1 star, when reach 1000 spawn 2 star and when reach to 1500 spawn 3 star in the Congratulation Screen but no matter which score i hit it always show 3 stars =-(
Spawner Rule: Att game.ScoreCoin equal & less than 500
change att. to 1
spawn actor : star 1 , layer order: in front of actor, direction: 0, positionX: 407, positionY: 322, relative to scene.
Rule: Att game.ScoreCoin equal & less than 1000
change att. to 2
spawn actor : star 2 , layer order: in front of actor, direction: 0, positionX: 498, positionY: 322, relative to scene.
Rule: Att game.ScoreCoin equal & less than 1500
change att. to 3
spawn actor : star 3 , layer order: in front of actor, direction: 0, positionX: 587, positionY: 322, relative to scene.
Star Rule: Att. game.ScoreCoin =1
change att to 1
Att. game.ScoreCoin =1
change att to 2
Att. game.ScoreCoin =1
change att to 3
i just want when hit those score spawn the star depending the score the player gets, Thanks
Spawner Rule: Att game.ScoreCoin equal & less than 500
change att. to 1
spawn actor : star 1 , layer order: in front of actor, direction: 0, positionX: 407, positionY: 322, relative to scene.
Rule: Att game.ScoreCoin equal & less than 1000
change att. to 2
spawn actor : star 2 , layer order: in front of actor, direction: 0, positionX: 498, positionY: 322, relative to scene.
Rule: Att game.ScoreCoin equal & less than 1500
change att. to 3
spawn actor : star 3 , layer order: in front of actor, direction: 0, positionX: 587, positionY: 322, relative to scene.
Star Rule: Att. game.ScoreCoin =1
change att to 1
Att. game.ScoreCoin =1
change att to 2
Att. game.ScoreCoin =1
change att to 3
i just want when hit those score spawn the star depending the score the player gets, Thanks
Answers
500pts, 1000pts and 1500pts are all equal OR LESS THEN 1500pts so you always get 3 stars.
It should be more or equal then...
score ≥500 change att to 1
score ≥1000 change att to 2
score ≥1500 change att to 3
Lump Apps and My Assets
Rule: spawner
Changing to ne or equal to 500
- change game.scoreCoin to 1
- spawn Star1v = to scene
Changing to ne or equal to 1000
- change game.scoreCoin to 2
- spawn Star2v = to scene
Changing to ne or equal to 1500
- change game.scoreCoin to 3
- spawn Star3v = to scene
Star 1Rule= gameScoreCoing greater or equal to "500"
change att gamescoreCoin to 1
spawn actor star1
Star 2Rule= gameScoreCoing greater or equal to "1000"
change att gamesscoreCoin to 2
spawn actor star2
Star 3Rule= gamescoreCoin greater or equal to "1500:???
change att gamesscoreCoin to 3
spawn actor star3
what i did wrong or what i miss there? thanks guys