How do I delay platform destuction after jumping

0 favourites
  • 4 posts
From the Asset Store
A pack of 76 platform designs for a platformer game with a mushroom/jungle theme
  • Hey guys im trying to figure out how to jump on a platform and then have it destroy but stay a solid long enough for me to jump away and destroy it. Like a one time use platform. Right now It destroys but my character falls through cause the destruction of the platform happens too fast.

    So think of mario when he jumps of goomba it destroys but he jumps off of it not falls right through it.

    Also my game has one touch controls and my player jumps on his own. When ever he is on the ground he jumps. Its like doodle jump

    I thought it would be straight forward but I cant seem to figure it out.

    Thanks a lot for any input

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You could do either

    1. have multiple frames in an animation (all the same frame if you like). Normally animation speed is set to zero. Start animation when you step on platform and destroy at the end of the animation.

    2. have an instance variable that counts down and destroys sprite when <= zero reached

    Personally I would probably use option 1

  • Nice I would not have thought of the 1st one. Thanks a lot I will try the 1st one out then. Appreciate the help

  • You may want to also disable collision in the later frames of the animation if you go that route, so you're not still able to continue hopping on something that's clearly in the process of no longer existing.

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