Godot 4 3D Platformer Lesson #21: Enemy (Part 2)! : Collisions & Squashing @BornCG
Godot 4 3D Platformer Lesson #21: Enemy (Part 2)! : Collisions & Squashing  @BornCG
Uploaded March 2025 | Updated September 2026, 2 weeks ago
In this lesson we'll continue creating our level's 3D 'gumdrop' enemies, by making them detect collisions with the player! .. in two ways: if the playable robot character touches an enemy from the side -- ouch!, the game switches to another game screen (or, the game restarts), and if the robot jumps on the enemy, the enemy gets squashed, stops, and disappears after a second, while the robot bounces off the enemy into the air.

Thanks for watching! Here are the video chapter timecode links:

- 0:00 - Video Intro
- 0:07 - Lesson Overview
- 0:38 - Getting Started
- 1:39 - Adding a Sides-Checker
- 3:54 - SidesChecker's Layers & Masks
- 5:17 - The SidesChecker's Signal & Function
- 6:21 - Coding Enemy Side Collisions
- 7:49 - Adding a Top-Checker
- 8:24 - TopChecker's Layers & Masks
- 9:55 - TopChecker's Signal + Code
- 12:51 - Creating a bounce() function
- 14:36 - Preventing Double Collisions
- 16:38 - Stop the Enemy (on Squash)!
- 21:04 - Make the Enemy Disappear (1 second delay)
- 24:12 - Wrap-Up & Outro

Don't forget to LIKE & SUBSCRIBE! 🥰 👍

❤️ DONATE ❤️ to support my channel via PayPal: goo.gl/ThkwyG

*****************
Play and Download the Finished 3D Platformer Game Online Now!: borncg.itch.io/3d-platformer-game (use: Chrome/Edge/Firefox to play the web game version)
*****************
*note: in this lesson I use Godot 4.1
********************************
LIKE and FOLLOW me on:
FACEBOOK: facebook.com/BornCG
INSTAGRAM: instagram.com/born.cg
X / TWITTER: twitter.com/BornCG
Reddit: reddit.com/u/BornCG
**********************************
Visit this Godot 4 Beginners 3D Platformer Course playlist!:
youtube.com/playlist?list=PLda3VoSoc_TTp8Ng3C57spnNkOw3Hm_35

Visit my Let's Learn Blender! Tutorial Series playlist:
youtube.com/playlist?list=PLda3VoSoc_TQrLrt-voecHs0Mb5qzk2S3

****************
Nicolas from the band 'The Lazy Saviours' created my Intro Jingle!
****************
Godot 4 3D Platformer Lesson #21: Enemy (Part 2)! : Collisions & SquashingBlender 2.7 Tutorial #70: Speeding Up Cycles & GPU Rendering with CUDA #b3dBlender 2.7 Tutorial #42 : Face Rigging (Part 2/3 : Shape Keys and Drivers) #b3dBlender Game Engine Basics Tutorial #8 : Shooting #b3d #gamelogicGodot 3.5: Lets Build a 2D Platformer!: Part 24 (Jump on a Button to Reveal Blocks!)Blender 2.7 Tutorial #52 : 10 Essential Camera TipsBlender 2.7 Tutorial #68: Shattering Objects with Cell Fracture #b3dBlender 2.7 Tutorial #38 : IK Rigging (Part 2/2) #b3dSIX GameDev Channels that will POWER UP your Godot!Godot 4 3D Platformer Lesson #9: Smooth Camera FollowingBlender Game Engine Basics Tutorial #13 : Health Bars #b3d #gamelogicBlender 2.7 Tutorial #74: Christmas Lights #b3d
BornCG |

Godot 4 3D Platformer Lesson #21: Enemy (Part 2)! : Collisions & Squashing

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER