How To Make Wall Collision In Scratch

106,488
0
2022-04-19に共有
In this Scratch tutorial, I show how to make wall collision in Scratch, that way your sprites won't go through certain objects! Thanks for watching! Please hit the like button and subscribe for future Scratch tutorials!

🔗 LINKS:
Scratch Profile Page: scratch.mit.edu/users/ShiftClickLearn/
Night Ninja Scrolling Platformer:    • Scratch | Scrolling Platformer  
Cat Clicker tutorial:    • Scratch | Cat Clicker Game  
Tower Defense tutorial:    • Scratch | Making a Tower Defense Game  
How-to tutorials:    • Scratch | How-To Tutorials  
Get Scratch Addons: scratchaddons.com/

🧾CHAPTERS:
00:00 - Intro
00:55 - Project Setup
01:35 - Getting Input
03:10 - Player Movement
05:47 - Collision
08:50 - Scrolling
11:40 - Outro

❗ DISCLAIMER:
This video is family-friendly! Hostile and/or rude comments will not be tolerate

コメント (21)
  • Thank you all so much for watching! Also oops, at 3:31 I said "dy", but I meant "dx"! Sorry about that! Also also xD, thank you so much for 10k! ♥
  • Love the idea of creating a hitbox. I've never really thought of doing that but probably will start doing that in more of my games.
  • This helped me so much! I've never been able to figure out how to combined collision and scrolling, but now I can!
  • Congrats on 10k! These videos always inspire me to code more :D
  • @Geezi24
    Thank you so much for this amazing tutorial! Congrats on 10k!!
  • awesome! 3 in 1 tutorial. wall collison, player movement, and background scrolling. its perfect.
  • When I was lost, you're video was there, thank you so much! The sub is definitely worth it!
  • Thank you, this helped a lot with a project I'm working on, I was struggling to get that smooth wall collision where you can slide against it if you're still holding the keys and it was really affecting how smooth it felt
  • Thanks! It had helped me sooo much on my tank game! My dad says it's my best game on Scratch, and without you i would have not done it!
  • @koolyeo
    You’re the goat 🐐 man, I was stuck on this for a while and ur video helped explain it well, i will credit your movement system
  • This was exactly what I was looking for. I wanted to make a rpg type game kinda, and this solves everything
  • @drilaxxxx
    It does not work for me and I don't know what I am doing wrong.
  • Uhh quick question how do you make it stop scrolling if it reaches the egde (like he edge of the map so it dpesnt show the bg and sops scrolling)
  • @Mel-mu8ox
    this was a lot easier to understand, thank you so much for sending me the link :D
  • im trying to get it to where it animates to the other costumes while it still has the hit box, is there any tips on how I can do that?
  • @itbob5184
    i always get stuck on the walls with the collision, even with hitboxes, please help, also love your content, genuinely.
  • i was looking for a tutorial for your characterr dying if they hit a wall, but this works just as well!
  • whenever I need to do semithin on scratch but idk how i watch ur videos bc u make scratch easy
  • @empty3073
    hey i got a question so lets say if theres a slanted wall and you walk down at it instead of going down the wall i just stay there do you have any fixes or any other tutorials you know? would help a lot if you replied