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 ➣ • Resource Gathering RPG in Godot 4 Tut...
Full Project with Scripts, Assets, and Art Pack ➣ https://ko-fi.com/s/e848d87222
Art Pack ➣ https://chris-tutorials.itch.io/gathe...
Tutorial Gdscript Download ➣ https://ko-fi.com/s/c02da64555
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
https://linktr.ee/ChrisTutorials
https://ko-fi.com/christutorials
https://chris-tutorials.itch.io/
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
https://linktr.ee/ChrisTutorials
https://ko-fi.com/christutorials
https://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
Смотрите видео Equip Items and Auto Update Sprites with @tool - Godot 4 Resource Gathering Tutorial онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Chris' Tutorials 18 Май 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 10,972 раз и оно понравилось 202 людям.