Checkpoint system in a platformer game [SOLVED]

This forum is currently in read-only mode.
From the Asset Store
HSV RGB Color Picker and Converter for Construct 3
  • Hi. I'm making a platformer exploration game, and I decided to have checkpoints since the levels are pretty big and stuff.

    Alright here's what I have

    � A sprite of the checkpoint that turns on and off to let the player know they activated it

    � Health bar for the player

    � Checkpoint variables

    So basically, the player dies, they gain back their health, and are teleported to the last checkpoint they touched. And there will be multiple checkpoints in the level, like 3 or something.

    Here's a screenshot of the editor (I didn't make it refill health yet, as it only decreases to 0 as of now)

    <img src="http://img19.imageshack.us/img19/5052/captureaow.png">

    And here's what happens

    <img src="http://img827.imageshack.us/img827/1646/capturebdm.png">

    As you can see, the player object just stops in mid air, it is where I want him to drop down from, but he's stuck in that position and can't move around no longer. Any way to fix this at all? Or is there an alternate event to move back to the checkpoint and still make the player active? Because from what I see, I can still change directions, its just that it seems like everything else in the platform movement behavior turned off. Any help will be appreciated, thank you.

  • That is because you're now basically setting the position to the checkpoint when Eli is is "dead" and has check value greater or equal to 1 which means when those two are met it SETs the position constantly.

    You need somekind of 2nd action or so like after "set position" put set value of Eli's health to 100 or whatever is the max

    Sorry, a bit tired so I hope my post makes any sense

  • Sorry, a bit tired so I hope my post makes any sense

    Not really. Could you explain a little further? So far I only heard about adding another action.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • He means that event 26 is continually running, and continually putting your player at that location over and over again, every frame, because there is no other condition to stop it from doing so.

    You need to break the chain so to speak. Add an action to event 26 that sets the player's health above 0. Then the next time the event comes up it won't run, and the player won't be put into that location again.

  • He means that event 26 is continually running, and continually putting your player at that location over and over again, every frame, because there is no other condition to stop it from doing so.

    You need to break the chain so to speak. Add an action to event 26 that sets the player's health above 0. Then the next time the event comes up it won't run, and the player won't be put into that location again.

    Oh, I get it now. Thanks, both of you. It works now, and learned a little more on the way.

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