In this tutorial we add xp tracking & simple leveling to our player, as well as basic stats for attack and defense!
Topics Covered: xp, experience, level, stats, attack, defense, signals, setter function, set
New Assets Needed:
N/A
Asset Download Page: https://michaelgames.itch.io/2d-actio...
GitHub Repo: https://github.com/michaelmalaska/aar...
AARPG Trello Board: https://trello.com/b/9PlGOAZv/aarpg-t...
Become a Patreon member to get exclusive access to Michael, and more:
https://patreon.com/user?u=26305011&u...
Join our discord community!
Discord: / discord
--------------------
Chapters
--------------------
0:00 Intro
0:26 Overview
02:22 Move xp variable from PlayerManager to Player script
04:21 Update enemy scripts to support the XP Reward mechanic
07:17 Add player stats to pause menu GUI
08:44 Label sizing & styles
10:30 Put stats in panel container
13:26 Gush about how good Godot's UI controls are
13:52 Finish other stat labels
14:46 Stats scene, script & functions
20:27 Save stats
22:53 Load stats
25:50 Handle xp & level up conditions
32:59 Update attack damage as attack stat changes
36:17 When to set attack damage values...
39:21 A better way to update the attack value
41:52 Update UI with XP required to level up
44:09 Implement defense logic on player damage
51:23 Screen shake is out of hand dude! (Let's fix it)
53:41 Outro
--------------------
Series Playlist: • Make a 2D Action & Adventure RPG in Godot ...