Godot Engine - Know Your Nodes: YSort
Skills:
AI Pair Programming50%
Key Takeaways
Utilizes YSort node in Godot Engine for game development
Full Transcript
welcome to know your nodes this is a series of goodto game Engine videos where we take a single node type and show how it's used maybe you never came across this particular node before or maybe you were just wondering what it's for but hopefully after this you'll have a new tool that you can use in making your own games this installment will be really short and sweet because we're talking about one of the simplest nodes there is the Y sort node so here we have a really common situation I've got a bunch of NPC Sprites that I've made 12 instances of and they just are walking around the map but it looks really unnatural when they cross in front of each other because their draw order isn't always correct right the draw order is just the order that they're listed here in the scene but for example when a Sprite like that right there when the Sprite is higher than another one where it's you know has a lower y value it should look like it's behind it right it feet shouldn't be on top of the other one's head and so you want what you want to do is make the draw order respect the y coordinate of the Sprite and draw it farther back the higher it gets and you could do that in code and it's a really common situation to need to do but gdau has a great node already set up for you to use that and I have it right here in this other scene it's called the Y sort and it couldn't be simpler y sort node has exactly one property enabled whether you wanted to be on or not and I've just taken all these NPCs and I've made them children of Y sort that's it no more configuration nothing else but if I run the scene you will see that none of that weird drawing happens see whenever a Sprite goes is above another one it's automatically behind it and that's it use this node it's your friend all right I'll see you next time
Original Description
"Know Your Nodes" is a series of Godot Game Engine videos where we take a single node type and show how it’s used. Maybe you’ve never come across this particular node before, or maybe you were just wondering what it’s for, but hopefully after this you’ll have a new tool you can use making your own games. This installment will be really short and sweet, because we’re talking about one of the simplest nodes there is: the Ysort node.
Sample projects from this video can be found here:
https://github.com/kidscancode/godot_tutorials/tree/master/Know_Your_Nodes
Support me on Patreon: http://patreon.com/kidscancode
Thanks to https://github.com/djrm/godot-design for title image.
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from KidsCanCode · KidsCanCode · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Learning to Code with Python: Lesson 1.1 - What is Programming?
KidsCanCode
Learning to Code with Python: Lesson 1.2 - Drawing with Turtles
KidsCanCode
Learning to Code with Python: Lesson 1.3 - Variables
KidsCanCode
Learning to Code with Python: Lesson 1.4 - Loops (and more turtles!)
KidsCanCode
Learning to Code with Python: Lesson 1.5 - Saving and Running Programs
KidsCanCode
Learning to Code with Python: Lesson 1.6 - Functions
KidsCanCode
Learning to Code with Python: Lesson 1.7 - Input and Conditional Statements
KidsCanCode
Learning to Code with Python: Lesson 1.8 - Number Guessing Game
KidsCanCode
KidsCanCode - Patreon Intro Video
KidsCanCode
Learning to Code with Python: Lesson 1.9 - Rock Paper Scissors Game
KidsCanCode
Learning to Code with Python: Lesson 1.10 - Secret Codes
KidsCanCode
Learning to Code with Python: Lesson 2.1 Creating Computer Graphics
KidsCanCode
Learning to Code with Python: Lesson 2.2 Simple Animation
KidsCanCode
Learning to Code with Python: Lesson 2.3: Animating More Objects
KidsCanCode
Learning to Code with Python: Lesson 2.4: More Fun with Animation
KidsCanCode
Extra: Setting up the Atom Editor for Python
KidsCanCode
Game Development 1-1: Getting Started with Pygame
KidsCanCode
Game Development 1-2: Working with Sprites
KidsCanCode
Game Development 1-3: More About Sprites
KidsCanCode
Pygame Shmup Part 1: Player Sprite and Controls
KidsCanCode
Pygame Shmup Part 2: Enemy Sprites
KidsCanCode
Pygame Shmup Part 3: Collisions (and Bullets!)
KidsCanCode
Pygame Shmup Part 4: Adding Graphics
KidsCanCode
Pygame Shmup Part 5: Improved Collisions
KidsCanCode
Pygame Shmup Part 6: Sprite Animation
KidsCanCode
Pygame Shmup Part 7: Score (and Drawing Text)
KidsCanCode
Pygame Shmup Part 8: Sound and Music
KidsCanCode
Pygame Shmup Part 9: Shields
KidsCanCode
Pygame Shmup Part 10: Explosions
KidsCanCode
Pygame Shmup Part 11: Player Lives
KidsCanCode
Pygame Shmup Part 12: Powerups
KidsCanCode
Pygame Shmup Part 13: Powerups (part 2)
KidsCanCode
Pygame Shmup Part 14: Game Over Screen
KidsCanCode
Pygame Platformer Part 1: Setting Up
KidsCanCode
Pygame Platformer Part 2: Player Movement
KidsCanCode
Pygame Platformer Part 3: Gravity and Platforms
KidsCanCode
Pygame Platformer Part 4: Jumping
KidsCanCode
Pygame Platformer Part 5: Scrolling the Window
KidsCanCode
Pygame Platformer Part 6: Game Over
KidsCanCode
Pygame Platformer Part 7: Splash & End Screens
KidsCanCode
Pygame Platformer Part 8: Saving High Score
KidsCanCode
Pygame Platformer Part 9: Using Spritesheets
KidsCanCode
Pygame Platformer Part 10: Character Animation (part 1)
KidsCanCode
Pygame Platformer Part 11: Character Animation (part 2)
KidsCanCode
Pygame Platformer Part 12: Platform Graphics
KidsCanCode
Pygame Platformer Part 13: Improved Jumping
KidsCanCode
Pygame Platformer Part 14: Sound and Music
KidsCanCode
Pygame Platformer Part 15: Powerups
KidsCanCode
Pygame Platformer Part 16: Enemies
KidsCanCode
Pygame Platformer Part 17: Using Collision Masks
KidsCanCode
Pygame Platformer Part 18: Scrolling Background
KidsCanCode
Pygame Platformer Part 19: Wrapping Up
KidsCanCode
Gamedev In-depth Topics: 4-way vs. 8-way Movement
KidsCanCode
Gamedev In-depth Topics: Time-based vs. Frame-based Movement
KidsCanCode
Gamedev In-depth Topics: Non-integer Movement
KidsCanCode
Tile-based game Part 1: Setting up
KidsCanCode
Tile-based game Part 2: Collisions and Tilemap
KidsCanCode
Tile-based game Part 3: Smooth Movement
KidsCanCode
Tile-based game Part 4: Scrolling Map / Camera
KidsCanCode
Tile-based game Part 5: Player Graphics
KidsCanCode
More on: AI Pair Programming
View skill →Related Reads
📰
📰
📰
📰
What I Learned Building an AI Resume Optimizer — And What Recruiters Actually Told Me
Dev.to · dayu2333-jinyul
The Language Barrier That Made Me Use AI Better
Dev.to · FromZeroToShip
I Stopped Running Playwright in Cron and Built a Screenshot Archive Instead
Dev.to · Cizze R
Find the GPU Built for Your Workload
Medium · AI
🎓
Tutor Explanation
DeepCamp AI