How do I Make My Game Properly Reset

0 favourites
  • 4 posts
From the Asset Store
five golem elements Sprites Sheet.Best for enemy or villain game characters.
  • Hi,

    I'm building a space invader clone. In order to make my shields deplete across levels I had to set the shields Object Type Properties to a Global YES.

    And then in order to make the shields regenerate at the start of a new game I added a Save state at load and then did a Load of the Save state on a new game.

    However, for some reason when I do this my invaders no longer collide with my wall and fly off the screen at a new game.

    Files here.... ... .capx?dl=0

    I would be grateful for any ideas please!?


  • Sorry, I can't quite grasp what the issue is..

    Game works fine for me.

    No invaders are flying off the screen.

    Which wall do you mean?

    Are you sure you provided the correct .capx?

  • Hi!

    Yea, sorry I didnt explain properly.

    The invaders only fly off the screen on the second game. You have to let the game end once. then restart by pressing "S"

    this next game they will fly off screen.

    Thanks for the help!


  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Honestly, I have no idea what exactly causes this.

    Must have something to do with the save state.

    Try to replace or remove that if possible, should fix it.

    Nonetheless, here is a temporary fix to make it work until you find a solution:

    Just replace the numbers by the X value you want.

    (Or use Window.Width)

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)