Uploaded May 2023 | Updated September 2026, 2 weeks ago
Setup a slot for items equipped to the hand and switch between hand items by using gdscript code in Godot 4. This tutorial shows how to use the tool annotation in Godot 4 to let code like swapping sprites on set run both in the editor and in game. Be careful with using the tool annotation though, code running in the editor can make permanent changes to your project which is useful when done write and potentially dangerous to your project when written incorrectly.
Series Playlist ➣ youtube.com/playlist?list=PLyH-qXFkNSxlANk9EwZmbtECBfbHeW68-
Full Project with Scripts, Assets, and Art Pack ➣ ko-fi.com/s/e848d87222
Art Pack ➣ chris-tutorials.itch.io/gatherers-exterior-pack
Tutorial Gdscript Download ➣ ko-fi.com/s/c02da64555
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
https://linktr.ee/ChrisTutorials
ko-fi.com/christutorials
chris-tutorials.itch.io
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
https://linktr.ee/ChrisTutorials
ko-fi.com/christutorials
chris-tutorials.itch.io
00:00 - Hitting Resource Node with Equipped Tool
04:18 - Equipable Items
11:29 - Equipped Item Setter to Update Sprite Texture
13:48 - @tool Annotation - Update Sprite in Editor with Code
15:02 - @tool Node Access Limitations
Setup a slot for items equipped to the hand and switch between hand items by using gdscript code in Godot 4. This tutorial shows how to use the tool annotation in Godot 4 to let code like swapping sprites on set run both in the editor and in game. Be careful with using the tool annotation though, code running in the editor can make permanent changes to your project which is useful when done write and potentially dangerous to your project when written incorrectly.
Series Playlist ➣ youtube.com/playlist?list=PLyH-qXFkNSxlANk9EwZmbtECBfbHeW68-
Full Project with Scripts, Assets, and Art Pack ➣ ko-fi.com/s/e848d87222
Art Pack ➣ chris-tutorials.itch.io/gatherers-exterior-pack
Tutorial Gdscript Download ➣ ko-fi.com/s/c02da64555
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
https://linktr.ee/ChrisTutorials
ko-fi.com/christutorials
chris-tutorials.itch.io
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
https://linktr.ee/ChrisTutorials
ko-fi.com/christutorials
chris-tutorials.itch.io
00:00 - Hitting Resource Node with Equipped Tool
04:18 - Equipable Items
11:29 - Equipped Item Setter to Update Sprite Texture
13:48 - @tool Annotation - Update Sprite in Editor with Code
15:02 - @tool Node Access Limitations







