"Jolt" effect?

This forum is currently in read-only mode.
From the Asset Store
A total of 214 high quality and unique magic sound effects suitable for RPG, Battle Arena and more!
  • I've been working on trying to come up with a way to create a "jolt" effect when a character shoots in my top down game. I'm not really sure how to describe what I mean, but it's something like the character... erm, jolts backwards quickly on shoot. If you've played Counter Strike 2D, when you fire your gun the sprite of the player jolts back quickly.

    I just can't figure out how to do it. Could anyone help me with trying to figure out how to do this?

  • Mmmm, how about pv= n: system set scroll to scrollx+normalrandom(0,10)?

  • You mean a kickback? It's basically giving the player some speed in the opposite direction as they're shooting. The implementation varies depending on what movement behavior you're using.

    Here is an example for a platformer:

    Shoot angle=0

    Sex player X speed to x_speed - 20

    Shoot angle=0

    Sex player X speed to x_speed + 20

  • Rather than move the player, why not use animation frames to move the gun back with image points? I think actually moving the whole player or screen is better left for explosions and rockets only.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks for the help guys! I've managed to create a sort of kick back effect via animation, thanks Jayjay!

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