Godot 4.X Tower Defense Tutorial - Part 06 (3D Drag and Drop)

Subscribers:
2,380
Published on ● Video Link: https://www.youtube.com/watch?v=_Iq5h7nd_jk



Category:
Tutorial
Duration: 28:33
4,504 views
159


Hey everyone. Hope you're doing OK, and welcome to part 6 of the Godot tower defense tutorial. In this episode, we're going to look at how we can drag and drop our turrets using the raycasting logic we used in episode 5.

This wasn't without it's challenges, so I hope the tutorial is clear enough for you. Please let me know what you think.

A like is always appreciated. A subscribe is fabulous! Hey, just a comment to let me know how it's going. Whatever you got ;-)

Links:
Github Source Code: https://github.com/WideArchShark/godot-tower-defense/tree/tutorial_06

Contents:
0:00 Introduction
1:00 Key points before we start
5:15 Creating the new button
9:25 Handling dragging with signals
11:30 Getting button ready for handling raycasting
14:00 Raycasting while dragging
15:30 Showing the draggable turret on the grid
17:35 Stop draggable appearing on invalid tiles
19:30 Making draggable go red on invalid tiles
24:00 Placing the turret in valid locations
27:40 Removing button focus border
28:10 Thank you!







Tags:
godot
tutorial
drag and drop