Make a Godot Roguelike Part 12 - Weapon system
Matinator
Good morning, in this tutorial we will create a weapon system. We will make a weapon class and we will transfer the sword nodes into this new class. After that, we will modify the player scene and script to switch between his weapons.
Code: https://github.com/MateuSai/Godot-Roguelike-Tutorial Asset pack made by o_lobster: https://o-lobster.itch.io/simple-dungeon-crawler-16x16-pixel-pack Thanks bro! You can find the hammer image in this page: https://www.spritecatalog.com/tools/
references:
- Mouse wheel input: https://godotengine.org/qa/30666/how-do-i-get-input-from-the-mouse-wheel
0:00 Introduction 0:27 Weapon scene 1:46 Weapon script 4:55 Transfer the sword into the Weapon class 6:24 Adapt Player to the Weapon class 8:45 Switch weapons system 12:53 War hammer weapon 13:47 Final result ... https://www.youtube.com/watch?v=5hlahdmOb-c
72595660 Bytes