YouTube magic that brings views, likes and suibscribers
Get Free YouTube Subscribers, Views and Likes

Weapon Bobbing Animation // Make An FPS in Godot 4 (E23)

Follow
StayAtHomeDev

In this video, we’re creating a procedural weapon bobbing animation that is customizable per movement state.

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



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



0:00 The Godot FPS Project
0:22 Weapon Movement with Movement States
1:01 Fixing Current Sway Animation Function
2:17 Separate Idle Movement
3:50 Control Weapon Movement with States
4:15 Getting Weapon Reference in States
5:02 Adding Weapon Reference
5:42 Adding Class to Weapon Init Script
6:29 Using Export Variable for Weapon
7:07 Inherited Weapon Reference
8:06 Adding Back the Sway and Idle Animations
10:32 Testing Idle and Sway Animations
11:25 Weapon Bob Animation
11:39 Why Sine?
12:42 Creating the Function
14:05 Adjusting Horizontal Movement and Speed
14:50 Sine Frequency and Amplitude
16:39 Adding Vertical Movement
17:30 Using Cosine for Vertical Movement
18:18 Creating Vertical Bounce
18:57 Final Function
20:00 Running it from Movement States
21:00 Integrate Bob Animation to Sway Function
22:39 Creating Export Variables Per State
25:38 Final Look
26:17 More 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