8 Directional 2D Character Movement Setup ~ Godot 4 Tutorial
Chris' Tutorials
Using Animation Player, Animation Tree, and some basic Gdscript we can make a CharacterBody2D move in 8 directions for Idle and Move when meshed with appropriate 8 directional art work.
Project Download Ko-fi ➣ https://ko-fi.com/post/PROJECT-8-Directional-Animation-Setup-for-2D-God-F1F314J5UX Patreon ➣ https://www.patreon.com/posts/113711479
Assets https://axulart.itch.io/small-8-direction-characters https://www.kenney.nl/assets/top-down-shooter
Grid Building Plugin ➣ https://linktr.ee/gridbuilder World Time Plugin ➣ https://linktr.ee/worldtimeplugin Item Drops Plugin ➣ https://linktr.ee/itemdrops
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me https://linktr.ee/ChrisTutorials https://ko-fi.com/christutorials https://patreon.com/christutorials https://chris-tutorials.itch.io/
00:00 - What to Expect & Sprites Download 00:17 - Player Character Node Setup 01:42 - Animations Setup 06:07 - Walk Animations 07:43 - Notes about Repeating Spritesheet Layouts 08:24 - Animation State Machine Blend Space 2D Setup 11:59 - Player Movement Code (Gdscript) 14:28 - World Scene Setup 17:07 - Animation Logic Code (Gdscript) 19:11 - Animation Playback Travel to Idle and Walk (Gdscript) 21:03 - Fix Up & Down Animation Directions 23:36 - Wrapup ... https://www.youtube.com/watch?v=cnXmwMpn4pw
101695928 Bytes