How do I make an knockback while getting hit by a bullet?

0 favourites
  • 7 posts
From the Asset Store
Antisuspend Plugin for Construct 3 prevents the runtime from getting suspended.
  • Ay bois, so, my error this time is, how the hell do i make an decent and not warping position knockback when getting hit by a bullet? And, yes, i tried using vector X but, he's so glitchable and didn't worked. If you know how, please tell me!

  • You should always post your code or project file.

    What exactly is glitching when you apply vector X?

  • Sorry for the BIG LAST response, i'm using this code: imgur.com/a/nkwtPUM

    and th

    And, instead of getting an average knockback, they just stop from walking for a moment, like, somehow in my game the vector is glitched and not moving at all.

  • It's not glitching, it works like it should.

    You can increase the value for the vector. The best solution is to use different values for when the player is moving towards the bullet, moving away from the bullet, and not moving.

    Also, you can temporarily disable controls.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It's not glitching, it works like it should.

    You can increase the value for the vector. The best solution is to use different values for when the player is moving towards the bullet, moving away from the bullet, and not moving.

    Also, you can temporarily disable controls.

    I gonna try the disable controls methods, but, thanks for the tip! But, do you know why they just got an so low push-up? Like, in some other projects just works normaly, in mine can't.

  • You mean the knockback is too small? Maybe the maximum speed is low, you can't set a vector that is higher than the Platform maximum speed. Try increasing it temporary.

  • You mean the knockback is too small? Maybe the maximum speed is low, you can't set a vector that is higher than the Platform maximum speed. Try increasing it temporary.

    K bro, gonna test this too, thanks a lot for helping me!

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