How to add gun knockback in Godot on a KinematicBody2D

Channel:
Subscribers:
3,810
Published on ● Video Link: https://www.youtube.com/watch?v=UPknMhQJnlE



Category:
Guide
Duration: 12:45
2,412 views
88


Just a quick video explaining how to make a basic knockback effect with a KinematicBody2D in Godot.

Code for both projects shown in the video:
https://github.com/aimforbigfoot/NAD-LAB-Godot-Projects/tree/master/GunWIthKnockBackKinematicBody2d

If you have any ideas or questions, please comment them down below. I'll try my best to answer any questions.

For the Godot Icon used in the thumbnail: Original Author of the Godot Icon (Andrea Calabró), changes were made to this icon.
https://commons.wikimedia.org/wiki/File:Godot_icon.svg

0:00 - Intro
0:42 - Disclaimer
1:10 - Paint Explanation
3:36 - Programming the pushback
6:27 - Adding Friction
8:24 - Rotating the Boomstick
9:30 - Extra details and possible errors
11:20 - Bullet Knockback Example







Tags:
Godot
Gun Recoil
Gun Knockback