In this tutorial, I'll show you how to create an advanced (and very modular) Stats system for you Godot game!
Here are the features we'll add in this system:
• Basic stats (HP, attack, defense, etc.)
• EXP, Level, and scaling stats to level
• Buffs and Debuffs
NOTE: This tutorial contains intermediate level Godot concepts, and assumes you're familiar with ways to integrate this system into your gameplay. If you need help with a Godot-related issue, be sure to ask for help in my Discord server: / discord
Thanks for watching, leave a comment/subscribe if you found this video useful, and I hope you have a great week! :)
Other Links:
• Checkout my website: https://www.queblegames.com/ (1 on 1 Godot tutoring, blog posts, etc.)
• Twitch: / queble_game_dev (game dev streams)
• Godot Download: https://godotengine.org/
Timestamps
0:00 Intro / Showcase
0:21 Creating the Stats.gd Script
0:50 Adding different stat properties
2:00 Creating an active Health variable
4:59 Creating 'Current' vs 'Base' Properties
7:24 Adding Level and Experience
10:41 Preparing for Stat Recalculations
13:04 Creating Stat Curves
15:46 Fleshing-out the Recalculate Stats function
17:53 Creating the Buff/Debuff System
20:54 Applying Buffs/Debuffs in the Recalculate Function
25:55 How to use this in your game
26:20 Final Notes (IMPORTANT)
27:04 Outro, members shoutout, thanks for watching! :D
This video was recorded in Godot v.4.5 stable