15 Free YouTube subscribers for your channel
Get Free YouTube Subscribers, Views and Likes

Procedural Gun Recoil // Make An FPS in Godot 4 (E26)

Follow
StayAtHomeDev

In this tutorial, we're adding a procedural recoil to our weapon that is easy to customize.

GET THE SOURCE FILES ►►   / stayathomedev_  
FREE BASIC FPS SETUP SOURCE FILES ►► https://github.com/StayAtHomeDevGit/...

Bullet Hole Image ►► https://opengameart.org/content/bulle...



✅ Basic FPS Setup Video ►►    • Make An FPS in Godot 4  
✅ FPS State Machine ►►    • E07  State Machine Introduction // M...  



0:00 Intro
0:17 Procedural Recoil
1:08 Adding the Recoil Node
1:40 Why Separate Nodes
2:30 Creating the Script
2:53 Adding Export Variables
4:05 Adding Rotation Variables
4:24 Importance of Types
4:53 Lerping Rotation Values in Process Function
6:54 Creating the Recoil Function
7:52 Constructing Randomized Rotation
9:19 Using Signal to Fire Recoil Function
10:30 Creating Weapon Fired Signal
11:28 Connecting Signal to Function
13:18 Initial Test
14:45 Adjusting Rotation Amount
16:48 Final Test
17:19 Get the Source Files
17:43 More FPS Tutorials



This series is part of my sponsored Godot FPS Project where we will walk through how to create an 3D FPS game in Godot 4, step by step. I won't be skipping any steps in the process and everything will be sequential video to video.

This initial basic FPS setup project is available for free to download and use using the MIT license via the link below. For all future videos, the project source files will be available to my GitHub Sponsors.

Joining my Patreon in one of the 3 tiers will give you:

access to the private Discord channel
your name in the project README
early access to tutorial videos
power to vote on what mechanics get covered in future videos
full access to the project source files to use in your own projects



STAYATHOMEDEV ►► https://stayathomedev.com
TWITTER ►►   / stayathomedev  
GODOT ASSET MARKETPLACE ►► https://godotxc.com/

#godot #godotengine #fps

posted by Dusevich5t