spawn actor by score issue

kajutokajuto Member Posts: 314
edited June 2012 in Miscellaneous
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

Answers

  • NmdogdudeNmdogdude Member Posts: 174
    In the spawner rule, try changing them to equal and greater than..., or create 3 outlines of a star as 3 separate actors and in each one, when attribute game.ScoreCoin is Greater or = to 500 spawn actor 'star 1'. and just increase them by 500.
  • LumpAppsLumpApps Member Posts: 2,881
    @Kajuto Have a look at your rules again.
    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
  • kajutokajuto Member Posts: 314
    i tried already.
    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

Sign In or Register to comment.