Directional Knockback for CharacterBody2D ~ 1 Bit Platformer Part 12 ~ Godot 4.3
Chris' Tutorials
Apply a knockback vector to a CharacterBody2D on hit from projectiles landing. Part of the bigger series on building a projectile platformer 2D game in Godot 4.3.
Project Downloads ~ Snapshot at Each Videos End Ko-fi ➣ https://ko-fi.com/post/Project-1-Bit-Projectile-Platformer-Tutorial-Ser-U7U510EBNX Patreon ➣ https://www.patreon.com/posts/107952055
Assets & Credits ➣ https://pastebin.com/qa4NiTyu
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/
➣ Support Channel with Crypto Donations https://pastebin.com/WAnBPcXs
00:00 - What to Expect 00:28 - Knockback Object 05:35 - Adding Knockback Movement to PlayHitAction 11:35 - First Test 13:14 - Hit Data Updates 14:19 - Fix:: Remove Hit Data if no Knockback 16:33 - Second Test 17:11 - Left Right Ground Knockback 23:44 - Calculate Hit Position from CharacterBody2D 26:52 - Wrapup ... https://www.youtube.com/watch?v=XUZGcse8cUQ
87196737 Bytes