Spike Traps and Bounce Traps - 2D Platformer Unity #23

Опубликовано: 17 Апрель 2026
на канале: Game Code Library
4,565
80

In this video we'll create traps! We'll make a spike trap that'll damage out player and send them up into the air (a small amount!). Then we'll make a bounce trap that sends us up high but does no damage!

❗️❗️❗️📢 BUY THE COMPLETE GAME TEMPLATE NOW!!! 👾❗️❗️❗️
https://gamecodelibrary.itch.io/2d-pl...

All source code for all videos I have made and will make in the future can be found on my Patreon:
https://www.patreon.com/posts/9817775...

Check out FULL series:
   • FULL Platformer Tutorial Series - Unity 2D  

Sprite sheet: https://www.kenney.nl/assets/1-bit-pl...

Discord:   / discord  

I'll be posting new videos every week, so be sure to subscribe to see what kind of adventure we can go on together! I'm excited! :-)

If you have any suggestions, feedback or questions, be sure to comment below! Any opinions will help me out on this journey ♡

0:00 - Intro
0:11 - Spike Trap GameObject
0:48 - Trap Script
2:43 - Test Spike (No Damage)
2:54 - PlayerHealth Script
3:36 - Test Spike (With Damage)
3:42 - Bounce Trap GameObject
4:12 - Finished Test
4:19 - Next Video
4:30 - Outro