Colliders, Triggers & Spaghetti Code | Unity 2D Devlog
https://www.youtube.com/watc...In this Unity devlog, I introduce colliders and triggers to my 2D game for better train traffic routing, sprinkling in a few beginner tips on colliders, triggers and the surrounding game architecture. I use Unity's event functions OnTriggerEnter2D and OnTriggerExit2D in my implementation. I also choose a title for my game, exciting stuff!
Say hi: https://twitter.com/AnniIsGame
Chapters:
0:00 Welcome
0:43 Naming the Game!!!
2:33 Why Colliders?
3:08 Triggers
4:18 Crossing Colliders
4:53 Train Colliders (Spaghetti Code Edition)
5:45 Train Colliders (Non Spaghetti Code Edition)
6:51 End Result
Music:
"Downtown Funk" by Dj Quads
"Hip Jazz" from Bensound.com
"Endless Motion" from Bensound.com
"The Jazz Piano" from Bensound.com
"Moose" from Bensound.com
"It’s Near" by DJ Quads