Help me about when all actors are gone change to next scene and to the next

sky_ssrsky_ssr Member Posts: 58
edited November -1 in Working with GS (Mac)
When all of my actors are destroyed, it changed to next scene but when the actors in the new scene were destroyed, the scene doesnt change. HELPPPP

THANKS

Comments

  • calvin9403calvin9403 Member Posts: 3,186
    make an attribute for that
  • sky_ssrsky_ssr Member Posts: 58
    When actor collides with actorb change game.actorcount to game.actorcount-1

    When game.actorcount = 0 changescene

    It works only one time, when i can go from scene 1 to 2 but not to 2 to 3
  • calvin9403calvin9403 Member Posts: 3,186
    use a boolean not an integer/real
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    sky_ssr said:
    When actor collides with actorb change game.actorcount to game.actorcount-1

    When game.actorcount = 0 changescene

    It works only one time, when i can go from scene 1 to 2 but not to 2 to 3

    you need to reset the actor count attribute when you change scenes. so when you change to scene 2 also change the actor count attibute to the amount of enemies on level 2 then the same for level 3.

    so say u have 20 enemys on level 1, 10, on level 2, and 5 on level 5.

    Have enemy count set to 20 for level one. Then have you a rule when actor count = 0 change scene to level 2 and change attribute actor count to 10 (since thats how many are on level 2)

    Then in level 2 have ur rule when enemy count=0 change scene and change attribute actor count to 5(since thats how many actors are on level 3)

    then just keep going like that changing actor count to the ammount of enemys on the next scene when u change scenes
  • sky_ssrsky_ssr Member Posts: 58
    IM CONFUSED NOW WHAT KIND OF ATTRIBUTE SHOULD IT BE?
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    sky_ssr said:
    IM CONFUSED NOW WHAT KIND OF ATTRIBUTE SHOULD IT BE?

    Interger. Boolean is only true and false, not a number like you need. I have no clue why he said that
  • calvin9403calvin9403 Member Posts: 3,186
    I am thinking of change the true and false thing to let him use, I guess integer is the same.

    Sorry about that

    calvin
  • sky_ssrsky_ssr Member Posts: 58
    My game is like use ball to crush stars, so where should the attribute be put on the ball? because when i put When actor collides with actorb change game.stars to game.stars-1

    When game.stars = 0 changescene(next scene), now even scene 1 doesnt change,,

    Thanks
Sign In or Register to comment.