When next level starts, objects move. Help!

Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
edited November -1 in Working with GS (Mac)
Hey guys,

I'm kinda making a game like Zombie Drop by Tshirtbooth. (since this was my first game, i wanted just to try and see if i could make a game like that)
Anyway, when i go to the next level, all of the boxes etc start moving (or like they've been hit by C4) So when you press 'go to next lvl' it brings you to the next lvl, but the boxes move! They aren't supposed to. Any idea why, i don't really have any other way to explain this.

Any help would be great as usual!

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Sounds like you have them setup so they are overlapping but also colliding which means when the level starts you will see them bounce off of each other.
  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    Okay update:

    It seems that it is the C4 that is making the problem, when i turn the radis of the explosion off, it works fine, but then of course, the C4 doesn't work. But at least i've gotten closer.

    Here is the link to where i found out how to make the C4, or TNT explosion: http://www.youtube.com/user/GameSaladCookbook#p/u/52/_ayoN7dCWMw

    So it seems that the explosion is taking effect when the level starts.

    Still, any help would be great!
  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    Upping this conversation :) so people see it.
  • youngster9youngster9 Member Posts: 326
    Make sure when you go to the next level you are reseting any attributes that are used to trigger events like the C4 or anything else.
  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    So redo everything that has to do with the TNT for ever level?
  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    Upping again so that people will see the thread. I still need help, read above please.
  • LoadingZeroLoadingZero Member Posts: 75
    have you duplicate the scene? have you restore to default your attribute when you move to the next level ?
  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    Zero, i just created a new scene, and then added my background image, and the actors i wanted...Thats how i create new levels...Thats how you supposed to do it, correct?

    It is the TNT that is causing the problem, but if i turn it off, it's fine. So, i need help figuring out how to keep the explosion on, but so that the objects don't move.

    I followed Tshirtbooth's tutorial on youtube for the explosion: http://www.youtube.com/user/GameSaladCookbook#p/u/52/_ayoN7dCWMw
  • LoadingZeroLoadingZero Member Posts: 75
    Braydon_SFX said:
    Zero, i just created a new scene, and then added my background image, and the actors i wanted...Thats how i create new levels...Thats how you supposed to do it, correct?

    My question is: have you create your first scene and duplicate for the next level? :D
  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    No, i made a new scene, and then set up everything different.

    I have 2 levels so far, and after the 2nd level, it starts again on the first level. Which is fine.
    But when it gets to the 2nd level again, it happens on that level too. So its not like it has something to do with that scene. It does have something to do with the TNT. :P
  • LoadingZeroLoadingZero Member Posts: 75
    oki, i think you've got some shared game attributes, when you change the scene you put your attribute to the default value?
  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    All i did was follow this tutorial: http://www.youtube.com/user/GameSaladCookbook#p/u/52/_ayoN7dCWMw

    Thats about it. Lol. Maybe watch it and see if you get anything out of it i didn't. :)
  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    Still need help, upping this again so people see it.
  • LoadingZeroLoadingZero Member Posts: 75
    before changing level set
    game.doblast = 0

    Try in this way
  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    ...

    So before the level ends, make sure that the game.doblast = 0?
    And then when the level starts, have it change back to game.doblast = 1?

    I am not sure i understand.
Sign In or Register to comment.