Get Rid Of A Gamover Glitch

  • So I tried to make cheats using the cheats tutorial - specifically a cheat that would give the player 1 life (whereas he starts out with 6) - but whenever I hit an enemy or fall down a pit, I get a gameover: even though the cheat is not activated.

    I deleted the cheatbox from the project and the layer, and now whenever I fall down pits, I get a gameover. But only rarely when I get hit by enemies; other times, I just lose a life.

    There are also times when I start up my game and the game over screen appears. I don't know what is going on, but, my game is completed and I'm not sure how to tackle this glitch.

  • Tested the game again and the same problem persists. There shouldn't be anything in the game causing this because I have a health global verable and gameover only happens when health = 0. Enemies only take away 1 health, so why are pits causing me to get a gameover?

  • Did any cheat operation lingers even though you disabled cheats? I can double check that for you if you show the events.

  • Did any cheat operation lingers even though you disabled cheats? I can double check that for you if you show the events.

    I don't know what you mean, but here you go:

    Title screen where cheats were created:

    <img src="http://img59.imageshack.us/img59/3282/capturezwn.jpg" border="0" />

    Level 1:

    <img src="http://img845.imageshack.us/img845/932/capture2a.jpg" border="0" />

  • I assume event 4 is your player falling down the pit. It restarts after 0.5 seconds and for those 0.5 seconds your player is outside the layout and losing 1 health every tick.

  • Yeah, if your pit leads outside the layout then the player is going to continuously lose health non-stop, instead of subtracting 1 only once. You might want to relocate the player's coordinates immediately just so that won't happen.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks everyone, glitch is fixed :)

  • or set the even where the health is removed to only trigger once.

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