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: https://goo.gl/ThkwyG

*****************
Play and Download the Finished 3D Platformer Game Online Now!: https://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: http://www.facebook.com/BornCG
INSTAGRAM: https://www.instagram.com/born.cg/
X / TWITTER: https://twitter.com/BornCG
Reddit: https://www.reddit.com/u/BornCG
**********************************
Visit this Godot 4 Beginners 3D Platformer Course playlist!:
https://www.youtube.com/playlist?list=PLda3VoSoc_TTp8Ng3C57spnNkOw3Hm_35 />
Visit my Let’s Learn Blender! Tutorial Series playlist:
https://www.youtube.com/playlist?list=PLda3VoSoc_TQrLrt-voecHs0Mb5qzk2S3 />
****************
Nicolas from the band ’The Lazy Saviours’ created my Intro Jingle!
****************

Vastaa

Sähköpostiosoitettasi ei julkaista. Pakolliset kentät on merkitty *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>