Make a Godot Roguelike Part 13 - Pick up and drop weapons
Matinator
Hey people, in this tutorial we will make the player able to pick up and drop weapons. At the end of the video, the player will pick up the weapons in the floor and drop them pressing a button.
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 battle axe image in this page: https://www.spritecatalog.com/tools/
references: - Reparent node: https://godotengine.org/qa/1754/how-to-change-the-parent-of-a-node-from-gdscript, https://godotengine.org/qa/9806/reparent-node-at-runtime - Deferred functions: https://godotengine.org/qa/43437/error-cant-change-this-state-while-flushing-queries-godot-3 - Tween error: https://www.reddit.com/r/godot/comments/pe9qax/tween_doesnt_work/ - Tween cheat sheet: https://raw.githubusercontent.com/godotengine/godot-docs/master/img/tween_cheatsheet.png
0:00 Introduction 0:17 Pick up weapons 6:03 Drop weapons 13:12 Final result ... https://www.youtube.com/watch?v=FST8kgt4ESg
70335060 Bytes