Godot 3.5: Let's Build a 2D Platformer!: Part 25 (Keys & Doors!)

preview_player
Показать описание
Thanks for watching! In this Godot Game Engine tutorial I cover how to add a collectable key object into your game that allows you to unlock doors that teleport you (like a portal) to other doors in your game level! Here are the video chapter timecode links:

- 0:00 - In this tutorial (overview) + example
- 0:57 - Video Intro
- 1:04 - Importing Game Assets (Sprites and Sounds)
- 3:21 - Creating a Key
- 6:53 - the Key's Script, Wound, & Signal
- 16:44 - the HUD Key Indicator
- 19:49 - the HUD's Key Code
- 22:59 - Telling the HUD that the Key's been Collected (using an exported NodePath)
- 31:57 - Creating a Door
- 39:34 - Coding the Door
- 45:50 - Adding a Door to the Level
- 48:11 - Opening the Door
- 51:21 - Door Sound Effects
- 55:49 - a Second Door & Door Targets
- 58:10 - Simple Teleporting
- 1:01:11 - Timed Teleportation Setup (using states and a match statement)
- 1:12:29 - Coding the Teleportation Steps
- 1:16:12 - Adding a Teleportation Sound
- 1:18:55 - Fixing a Bug: Sequential Teleporting
- 1:20:14 - Bug: Extra 'Unlock' Sound
- 1:23:19 - Fixing Camera Smoothing / Interpolation
- 1:27:59 - Freezing the Character during Teleportation
- 1:32:21 - Fixing Character Vulnerability
- 1:34:21 - Wrap-up / Summary
- 1:35:13 - Call-to-Action & Social Media + Outro

*note: In this video I use Godot 3.5.1
#godotengine #gamedev

*****************
****************
DOWNLOAD the GAME SPRITES & SOUND EFFECTS .ZIP Here:
*****************
****************
LIKE and FOLLOW me on:
**********************************
Visit my Godot 3 Tutorial Series playlist!:

Visit my Let's Learn Blender! Tutorial Series playlist:

Visit my Blender 2.7 Tutorial Series playlist:

Also check out my Blender Game Engine Basics Series playlist:

My Blender Video Effects Playlist:

****************
Nicolas from the band 'The Lazy Saviours' created my Intro Jingle! Check out his band's album here:
[not a sponsor]
****************
Рекомендации по теме
Комментарии
Автор

Dude you are my little brothers high school teacher! I used your videos in high school too! It’s so cool that my little brother know you and I had no idea you taught in my city!

Grobusck
Автор

I left one of your playlist running all night while I slept. I woke up and decided to subscribe. When I hit subscribe, it gave me an error even though the ui showed it worked. And when I hit notifications, it gave me another error. Don't worry, I restarted the YouTube app and went back to your channel and it worked. I've never had that happen before, but I thought it was interesting after watching you script in Gadot in for hours. 😂😂😂 Great content! I started making a game in blender about 13 years ago and then life happened. After watching your simple 3d game in Gadot tutorial I'm thinking of revisiting it. You're a great teacher! Thank you for sharing your knowledge. I'm going to download Gadot and start messing around with it.

heartbreakandmotorjive
Автор

man, I'm coding doors and keys in my godot 3d game JUST NOW 😂😂😂 the timing!

iakobs
Автор

Please do a tutorial on save and load! I'm having difficulty learning it and u make things so easy to understand!

chumptree
Автор

you taught me 3d and are now teaching me how to learn godot, cant thank u enough for ur vids over the years

veylore
Автор

Your Godot videos are super awesome! Definitely gonna binge watch while code along.

pietraderdetective
Автор

I couldn't get the teleport line of code to work in Godot 3.5.3 where the player was assigned the new coordinates of the other door until I used this line of code

player.position = target.global_position.

Great tutorial Colin. This is the best tutorial out there for learning the engine.

doogiedog
Автор

I have to confess this is the easiest tutorial about godot, event it is about godot 3.5 or even earlier, for me to learn godot 4.3, it still feels so smooth. thanks colin, after watching your tutorial, I had deciced to donate some dollars to buy you a cup of coffee for your great work, but it tell me I cannot donate from my area (China Mainland), , sorry for that.
hope you can continue to do more tutorial for godot, really you helped a lot for us

mingle-hk
Автор

Thanks colin! I feel like I have enough experience in Godot now to make my own features and mechanics. Would love to see more tutorials though!

Vexatious
Автор

Entertaining and informative. Thank you.

CalmProto
Автор

Pretty cool, makes you think of all the time it takes to make a game.

Justine-justin
Автор

Another great video. I also wish you a great 2023.

antoniowagner
Автор

interested in how to save progress in the game. are you planning a lesson on this topic?
before that, I didn't understand the programming language in Godot at all. and he didn't know how to program. but after watching your training videos, I began to understand how it works. thank you for your work)))

irayala
Автор

Hi, First of all THANKS for your excellent tutorials.
I hope this is not an old questions, but could you do a mini tutorial on converting the project of this tutorials serie for Godot 4, when it will be released as Stable?

hrgamedev
Автор

Great tutorials, can you make one about load and save. If you could that would be amazing!

Nebular_Games
Автор

Hoping you will release tutorials for Godot 4. :-)

rendcycle
Автор

Hey! I really love your tutorials, and i want to know if you will make more 3D Godot tutorials with the new version, they helped me a lot with making my games :D

EggsToMe
Автор

Hello Colin I finally finished all your tutorials and now I'm trying to add levels 2 an more how do I have everything carry over to my new scenes ? Please do a video tutorial if it's not easy to do, thanks Eric.

ericwood
Автор

Can you give us an explanation of how to save the data, for example, the status of the player, the number of coins collected, or anything else

hakimsmaili
Автор

oh nice a Video again, one thing, could you pleas make a second level and show us how we add everyting from the first one, i tried it but it all ended up a faliur and so im asking you to explain it in a Video, it would be verry halpfull, btw. i love your Videos and like how you are explaining it. 😀

andrejmaimakov