Coding Platformer Enemies | 11. Scratch Platformer Tutorial

535,236
0
Published 2021-12-30
Coding Platformer Enemies made easy. In this tutorial we show how to add multiple patrolling, chomping enemies to our Scratch Game.
Jump on their heads to squash them and continue on your quest!
We also add safe zones to allow for guided patrolling, and learn about the danger of placing enemies too near the edge of a scene where the player might unfairly lose a life.

My tutorials are for all budding game & software developers using Code Blocks. Scratch On guys!

šŸ± Scratch Studio (post project here) - scratch.mit.edu/studios/30847631/

šŸ”„ Wall Jumping Bug Fix - Ā Ā Ā ā€¢Ā HowĀ toĀ FixĀ AĀ ScratchĀ BugĀ šŸ™ƒĀ -Ā ClassicĀ ...Ā Ā 
šŸ‘€ Next Episode #12 - Ā Ā Ā ā€¢Ā FunĀ withĀ RotatingĀ PlatformsĀ |Ā 12.Ā Scr...Ā Ā 
šŸ‘€ First Episode - Ā Ā Ā ā€¢Ā CodeĀ aĀ PlatformerĀ GameĀ |Ā 1.Ā TheĀ BasicsĀ Ā 
šŸ‘€ Playlist - Ā Ā Ā ā€¢Ā CodeĀ aĀ PlatformerĀ GameĀ Ā 

šŸš€ Boost Your Creativity with Griffpatch
The Griffpatch Academy will take you from "Gamer to Game Creator"
Learn more at šŸ‘‰ griffpatch.academy/ šŸ‘ˆ

šŸ˜ŗ Scratch was developed by the Lifelong Kindergarten Group at the MIT Media Lab. See scratch.mit.edu/

ā¤ļø Scratch Addons - scratchaddons.com/
šŸ“¹ Video Editing Software - techsmith.z6rjha.net/5bajbo

-------------Video Chapters-------------
0:00 Intro
0:44 Red Enemy
3:19 Positioning and Spawning Enemy Clones
6:05 De-spawning Enemy Clones
7:36 Enemy Gravity ā€“ Move Down
9:59 Enemy Movement ā€“ Left and Right
11:38 Enemies on slopes
13:48 Animation
16:48 Enemy Collisions ā€“ Lose a Life
19:37 Jump on an Enemies Head
22:29 Improved Enemy Spawning
26:37 Safe Zones
29:07 Door problem
31:03

All Comments (21)
  • @luisjogos821
    This series is helping me out a ton, because I'm making a platformer in Pocket Code,so most things also work on it.
  • @callmehtheguy
    Cannot believe how far this series has gone. How could someone possibly not subscribe after all this? 3:23 WAIT WHA, the sprite is still named 'sprite1' instead of 'Enemy'!?
  • @xoS1d
    Nice!:goodvibes: Loving all of these episodes!
  • @cakesrus3852
    Thank you thank you!. I waited for a long time for this video . This is a very exciting video šŸ±.
  • I implemented those enemies and they give a really cool touch to the game. Thank you very much. I'm gonna try to handle the player hitbox because the death by ennemies is quite sensitive:_thonk:
  • @ignaciohdi
    100k finally! Congratulations, your tutorials are great!
  • @levlev4048
    I was waiting for this tutorial for years, and finally got it. Thanks griffpatch
  • @NovaWolf_
    Your scratch skills never fail to amaze me, how you can figure out all these complicated things like pathfinding and even physics inside a scratch engine is beyond me, amazing work keep it up!
  • @vydxz
    I can't believe I've actually found your channel I've been playing your scratch games for like 3 years they're so fun!
  • @antoniasage602
    21:53 ( look at the ā€œOkā€ button when the Player - Bounce is right about to be added.) Thx for the tutorials!
  • I was waiting for that episode more than Santa's gifts :_lol::_lol: Thank you Griffpatch for making it so simple to understand that's the most important thing. Till next episode šŸ˜‰
  • @ThePantaloon_
    I honestly can't believe that this series got so far. Love you Griffpatch
  • @phosmo4739
    Loveee the tutorials man, helps a ton ā¤ļø
  • @funraven659
    LOVE WATCHING YOUR VIDS WHEN I HAVE FREE TIME, though it would be fun to see him use a Boolean in a custom block for the first Time (yes, I know he used a Boolean in custom blocks OFF camera, but I want to see do it ON camera) Still, keep up the awesome work
  • Iā€™ve been waiting for this for so long, I decided to create a combat mode for it!
  • @soursalt698
    i will always remember the day as a kid i went to some place (i dont remember if it was some kind of festival or not) and there were some dudes sitting outside with a laptop, they offered to teach me what scratch is and how to use it for fun, didnt really use scratch after that but always found it cool