Heavy Jump Impact!

0 favourites
  • 5 posts
From the Asset Store
J.BoB Impact Action Interface Sound Pack comes with 120 high-quality sound effects
  • Hey guys! Very new Construct user here, but having a blast. I am doing a platformer, and have run into a small wall.

    Making a Wreck-It-Ralph style platform character that lends with a heavy, screenshaking impact when falling from a great height.

    I would assume I'd just need a Platform On Landed and a Compare Speed condition on my player character, coupled to a Shake, but it doesn't work - it seems like it's only counting speed applied from sideways movement, rather than the fall speed. Can anyone help me in the right direction?

  • Basically looking for an extension of this - this works, but means the screen is shaking on EVERY impact, even after a small jump. I only want it after particularly long drops.

  • The platform behavior triggers on landed after the collision is resolved so you won’t know the speed. What you probably can do is save the y velocity to a variable every tick. And since the behaviors run before the event sheet the variable will be the y speed one frame behind.

    Global number vy=0
    
    Every tick
    — set vy to player.platform.velocityY
    
    Player: on landed
    Compare: vy>100
    — screen shake
  • Oh! That makes sense, I will see if I can implement that. Thank you very much.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I made it work! Thank you so much, I think your advice just made something click for me. :D

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