Coding Platformer Enemies | 11. Scratch Platformer Tutorial

  Рет қаралды 553,099

griffpatch

2 жыл бұрын

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 - kzbin.info/www/bejne/lYCWhJVmYtx8rq8
👀 Next Episode #12 - kzbin.info/www/bejne/hqbUqn2FiZ1modE
👀 First Episode - kzbin.info/www/bejne/emKZmYekeayqm9E
👀 Playlist - kzbin.info/aero/PLy4zsTUHwGJIATydhFeZa5pspLZR7yE__
🚀 *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 Outro

Пікірлер: 1 209
@luisjogos821
@luisjogos821 2 жыл бұрын
This series is helping me out a ton, because I'm making a platformer in Pocket Code,so most things also work on it.
@namrata.agarwal
@namrata.agarwal 2 ай бұрын
Pocket code is dum
@RafaelSonicgamer
@RafaelSonicgamer 2 ай бұрын
​@@namrata.agarwal not that dumb, o tried It before, basically scratch but for apps
@callmehtheguy
@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'!?
@jameslewis-basson
@jameslewis-basson Жыл бұрын
ik why sprite1 instead of enemy
@AngelaGS
@AngelaGS Жыл бұрын
Hahaha:D
@RadiantSolo123
@RadiantSolo123 11 ай бұрын
LOL🤣🤣🤣
@pats7081
@pats7081 10 ай бұрын
agree
@Hancraft-yj1qt
@Hancraft-yj1qt 8 ай бұрын
true
@studiodespenates
@studiodespenates 2 жыл бұрын
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
@studiodespenates
@studiodespenates 2 жыл бұрын
@griffpatch , I tried two ways (that did work) of implementing the use of a hitbox for the player and I need some advice. The first one was to broadcast a new event "Touching Enemy" instead of "lose life" in the "Touching Player" block in the enemy. The Player receives this event, changes costume to the hitbox and deals wether the hitbox really touches the enemy clone and then broadcast lose life or not. As I said, it did work but it seems a bit messy as the check for touching danger happens in the "Tick last" event receiver. I'm afraid this could mess up with the costume change to hitboxes as two different scripts can now change costums to hitbox and check for collision with dangers ans enemies. (I did not mention that I added a hitbox for the "touching danger" in the "tick last" too cause, it was also a little bit sensitive with danger sprite ;-) ) So I tried another solution of having a new "for all sprites" variable named "TOUCHING ENEMY". It is set to 1 by the enemy clone instead of broadcasting "lose life". The player, in the "tick last" event receiver can now check the TOUCHING ENEMY variable value and do the hitbox costume trick in that script. Which keeps the costume hitbox and check for collision with danger and enemy a little more tidy. Then at the end of "tick last" receiver, the variable is set to 0 if the player is not touching an enemy. There might be a better place to reset the variable which I haven't found yet. I'd rather like the second solution with the variable but I'm not sure. Both those implementations involves 2 sprite touching tests (one in the enemy clone, one in the player) which is not very effective. Which solution seems better to you and why? Or am I in the wrong direction? Thanks a lot.
@vydxz
@vydxz 2 жыл бұрын
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!
@ericdelangle4821
@ericdelangle4821 2 жыл бұрын
thx for getting me good games🤗
@funraven659
@funraven659 2 жыл бұрын
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
@kgratia4748
@kgratia4748 Жыл бұрын
The rarest sight ever. So rare, not even I recall using it, haha.
@amateurishanimation
@amateurishanimation 2 жыл бұрын
Finally! I wanted a tutorial on enemies.
@NovaWolf_
@NovaWolf_ 2 жыл бұрын
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!
@aleksandrakandelaki7956
@aleksandrakandelaki7956 2 жыл бұрын
No he always messes up, he is the worst
@larrywheeler5076
@larrywheeler5076 2 жыл бұрын
@@aleksandrakandelaki7956 Thats not very nice
@Red-cr3yz
@Red-cr3yz Жыл бұрын
@@aleksandrakandelaki7956 not really
@ChickenNose123
@ChickenNose123 18 күн бұрын
I added Checkpoints all by myself! Griffpatch inspired me to not be afraid of platformers! Thanks!
@smth35
@smth35 2 жыл бұрын
You could add another way to defeat enemies in a future tutorial. Such as.. a sword! Or maybe a shooting weapon. (Because that is what i'm dealing with at the moment) Another thing you can add is enemies with multiple lives (Not exactly like a Paragoomba for example, but with health that is (in)visible), or even a boss!
@rodgeangeroancelso6109
@rodgeangeroancelso6109 2 жыл бұрын
I think a boss would be fine for my project
@smth35
@smth35 2 жыл бұрын
@@rodgeangeroancelso6109 yeah, i have already developed a shooting at enemies mechanic. I might also add metal body/helmet to enemies. Also, multiple health can be done by setting a local variable to a number at the start of "when start as clone", and change health by -1 when normally the enemy should be squashed. And squash the enemy if enemy hp is below 1 after changing the hp.
@smth35
@smth35 2 жыл бұрын
A custom moveset can be made in the enemy loop
@_gherry
@_gherry 2 жыл бұрын
yes, i remember mario having a gun!
@don_gato1774
@don_gato1774 2 жыл бұрын
@@coldintakevideos RELAX BRO
@cakesrus3852
@cakesrus3852 2 жыл бұрын
Thank you thank you!. I waited for a long time for this video . This is a very exciting video 🐱.
@deskasandreas4504
@deskasandreas4504 2 жыл бұрын
I was waiting for that episode more than Santa's gifts Thank you Griffpatch for making it so simple to understand that's the most important thing. Till next episode 😉
@Scratcher_No-1
@Scratcher_No-1 2 жыл бұрын
How did you wrote that emojie?
@gloz6662
@gloz6662 2 жыл бұрын
@@Scratcher_No-1 he is sponsor
@deskasandreas4504
@deskasandreas4504 2 жыл бұрын
@@Scratcher_No-1 Yeah I'm a sponsor
@Scratcher_No-1
@Scratcher_No-1 2 жыл бұрын
@@coldintakevideos No!
@deskasandreas4504
@deskasandreas4504 2 жыл бұрын
@@coldintakevideos How old are you mr Roblox? LOL
@antoniasage602
@antoniasage602 2 жыл бұрын
21:53 ( look at the “Ok” button when the Player - Bounce is right about to be added.) Thx for the tutorials!
@ThePantaloon_
@ThePantaloon_ 2 жыл бұрын
I honestly can't believe that this series got so far. Love you Griffpatch
@quickshark9536
@quickshark9536 2 жыл бұрын
19:46 People actually use this in speedruns for the original Super Mario Bros. They jump from under and avoid the hitbox and they fall for a few frames and defeat it when they touch the hitbox. Edit: Congrats on 100k!
@levlev4048
@levlev4048 2 жыл бұрын
I was waiting for this tutorial for years, and finally got it. Thanks griffpatch
@harrisongreen1892
@harrisongreen1892 2 жыл бұрын
I stopped making scratch and moved to python and unity projects but still watch these.
@griffpatch
@griffpatch 2 жыл бұрын
Awesome... It's all the same at its roots... :)
@danielayeniscratchtutorial4350
@danielayeniscratchtutorial4350 2 жыл бұрын
Could you please make one that keeps the enemy squished even when you return to that scene. TKS!
@soapfaces
@soapfaces 2 жыл бұрын
I know how to do that. Use a similar trick to the one for keeping collectables in the same place on a different screen (the null room)
@vihaansingla7514
@vihaansingla7514 2 жыл бұрын
@@soapfaces daa
@soapfaces
@soapfaces 2 жыл бұрын
@@coldintakevideos bro what are you on about
@j10paul
@j10paul 2 жыл бұрын
@@coldintakevideos Scratch is coding, it's just simpler, and also, that comment is off topic.
@juansebastian7723
@juansebastian7723 2 жыл бұрын
@@coldintakevideos don’t care about him
@ignaciohdi
@ignaciohdi 2 жыл бұрын
100k finally! Congratulations, your tutorials are great!
@happyretirementmsvacca
@happyretirementmsvacca 2 жыл бұрын
two suggestions: 1. Instead of a 1 + floor of frame mod 4, could we have done a join Red and floor of frame mod 5? 2. Instead of a change speed y by -1, should we have used the already existing gravity variable?
@bilkmucket1470
@bilkmucket1470 2 жыл бұрын
First one goes through all 5 costumes so it doesnt work
@jameslewis-basson
@jameslewis-basson Жыл бұрын
I love it when griffpatch is funny like at 8:49 there was a lemon on top of the custom block
@cubic_
@cubic_ 2 жыл бұрын
I want to know, how do you make multiple enemy types, because I want to have more enemies instead of the same enemy used over and over.
@MF5000
@MF5000 Жыл бұрын
i know how to make different enemy types.
@xoS1d
@xoS1d 2 жыл бұрын
Nice! Loving all of these episodes!
@Megabyte1
@Megabyte1 2 жыл бұрын
Griffpatch you should make a shop where you can buy things with apples, like for example a key so that the players can't just skip a ton of the map
@Quack12399
@Quack12399 Жыл бұрын
That is what I am doing
@pe_games
@pe_games 2 жыл бұрын
28:00 Griffpath you are so organized! My scripts are so large 🤣🤣🤣
@cactithegreat4871
@cactithegreat4871 2 жыл бұрын
I’ve been waiting for this for so long, I decided to create a combat mode for it!
@theobaldtiu
@theobaldtiu 2 жыл бұрын
Real cool!
@donkkonk5293
@donkkonk5293 2 жыл бұрын
Wow! So awesome! I was waiting for this.
@silvertakana3932
@silvertakana3932 2 жыл бұрын
It would be cool if you make the background parallax instead of staying still! It would create some nice depth to it!
@griffpatch
@griffpatch 2 жыл бұрын
On scrolling games that's cool, but not quite as good on a non scrolling game like this
@silvertakana3932
@silvertakana3932 2 жыл бұрын
@@griffpatch some games do that anyway. but yea, sometimes, it can drive the player dizzy!
@uhhemrxcc
@uhhemrxcc 2 жыл бұрын
@@griffpatch Happy New Year's Eve!
@skeletonizermal
@skeletonizermal 2 жыл бұрын
Sadly the scene-based nature of this project makes it really hard to do, if not impossible.
@awesomesauce0742
@awesomesauce0742 2 жыл бұрын
i can help you rephrase that: Make the whole level slightly move when you move so it looks like a somewhat 3d environment
@cubee4108
@cubee4108 2 жыл бұрын
And, quick comment, you can actually not use 4th sprite in 2:48, but rather just cycle back to 2nd sprite after 3rd one is played out.
@macronas1239
@macronas1239 2 жыл бұрын
Griffpatch, do you know how to separate "a" and "A" in Scratch? I need it for making a keyboard in Scratch.
@eforluc
@eforluc 2 жыл бұрын
Hmmm maybe an if costume number = (insert number) but idk I’m not griffpatch, also I made a keyboard thing aswell
@macronas1239
@macronas1239 2 жыл бұрын
@@eforluc it probably doesn't work...
@bitofbeans
@bitofbeans 2 жыл бұрын
BOTH OF THESE METHODS CHECK ONE LETTER AT A TIME make one empty costume and then 26 costumes called A,B,C etc switch costume to (empty costume) switch costume to ((letter variable)) if costume is not empty costume it is uppercase, otherwise lowercase ORRRRR if you don’t want to make 27 costumes, you can a make a bit more code, don’t worry it’s a lot easier to make imo make one costume that is empty and one costume named ABCDEF… all the way to Z ( all letters uppercase) then a variable named Characters and set it to A to Z all uppercase again and a variable called String also any counter variable works, like “i” or “counter” now set counter to 1 and string to nothing repeat 26 if letter (counter) of (Characters) = the character you are checking then set string to (string) join (character you are checking) else set string to (string) join (letter (counter) of (Characters) to finish the repeat loop add a change counter by 1 AFTER the repeat loop set costume to empty costume set costume to string if costume is empty costume then it is lowercase, otherwise it’s lowercase hope this helps!!
@macronas1239
@macronas1239 2 жыл бұрын
@@bitofbeans I'm gonna try it!
@elijahbedinger7951
@elijahbedinger7951 2 жыл бұрын
Happy 100k subs! What a great start to the new year!
@FrostleGaming
@FrostleGaming Жыл бұрын
Idea 1: add portals that can teleport you through the same scene or difference scene Idea 2: add jump orbs that when you click them and are touching them mid air you jump but if you dont click you go through
@nikolime_yay
@nikolime_yay Жыл бұрын
JOMETREY DASH REFFRENSE!?!?!?!?
@rleung9463
@rleung9463 3 ай бұрын
Yeah, that's gd
@meowsername
@meowsername 2 жыл бұрын
Aww man I was hoping for a tile scrolling episode, but this is good too.
@MotivationUmmah
@MotivationUmmah 2 жыл бұрын
TYSM griffpatch you make coding seem so easy. Your work is so underrated you deserve way more subs
@MamaMoLangNaman20
@MamaMoLangNaman20 2 жыл бұрын
Wow my platformer is gonna be great now Thankyou sooo Much Griffpatch!❤❤
@griffpatch
@griffpatch 2 жыл бұрын
Yes it will!!! Woohoo :D
@MamaMoLangNaman20
@MamaMoLangNaman20 2 жыл бұрын
@@griffpatch ☺❤YEP!
@Waizzzz
@Waizzzz 2 жыл бұрын
Episode 1: Basic control Episode 20: Cloud multiplayer, score system Episode 25: Exporting game as .exe file and put it on Steam, Google Play and App Store
@Enderia2
@Enderia2 2 жыл бұрын
lol
@realquemulroy
@realquemulroy 2 жыл бұрын
Nice.
@Popcorn-sg2xb
@Popcorn-sg2xb Жыл бұрын
Yes
@thatguystar817
@thatguystar817 6 ай бұрын
what about enemies with health? how do you code it so that in one room with 2 enemies, killing one enemy in a room doesn't also kill the other one? Thanks!
@DDP-Gaming
@DDP-Gaming 2 жыл бұрын
I can definitely see where the inspiration of the enemies came from Hint : Appel
@notthatntg
@notthatntg 2 жыл бұрын
a a p p p p e e l l
@ericdelangle4821
@ericdelangle4821 2 жыл бұрын
you got it right this remembers me somehow of this custom getting over it
@mibsmartlearning9621
@mibsmartlearning9621 2 жыл бұрын
he said that at the start
@Shreyan12345
@Shreyan12345 Жыл бұрын
he said that
@ShiftClickLearn
@ShiftClickLearn 2 жыл бұрын
Ooh, I like the little red chompers! xD
@villewedenberg2793
@villewedenberg2793 2 жыл бұрын
You are an amazing scratcher and makes it easy to code with your awesome youtube videos! Keep it up!
@aleksandrakandelaki7956
@aleksandrakandelaki7956 2 жыл бұрын
no
@WatchThis1_2
@WatchThis1_2 Жыл бұрын
thank you so much for this. this changed my life!🤩🤩🤩
@vVearon
@vVearon 2 жыл бұрын
we need “How To Think Of Ideas”
@silvertakana3932
@silvertakana3932 2 жыл бұрын
I love platformer games! Because it's fun for me to compete with my siblings and friends. What a good time it is!
@heckercat3968
@heckercat3968 2 жыл бұрын
I can’t explain how great this video is! There are literally no words for it! You are so amazing! Keep up the good work! 🥰
@Isakube
@Isakube 2 жыл бұрын
Congratulations. You have now explained how great this video is.
@sheeveman7568
@sheeveman7568 Жыл бұрын
I have a problem where if a enemy touches the wall or edge it starts moving back and forth rapidly
@amateurishanimation
@amateurishanimation 2 жыл бұрын
Idea: make an enemy with pathfinding that will actively chase the player
@zhanghetianytps7541
@zhanghetianytps7541 2 жыл бұрын
nice
@rodgeangeroancelso6109
@rodgeangeroancelso6109 2 жыл бұрын
Yea good idea
@evanlamb1595
@evanlamb1595 2 жыл бұрын
With would be really cool with the maze tutorial!
@danilopantelic2957
@danilopantelic2957 2 жыл бұрын
that is an awsom idea
@NayanAnimations
@NayanAnimations 2 жыл бұрын
In his game appal (or something) there is that or something similar at least...
@soursalt698
@soursalt698 2 жыл бұрын
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
@griffinbrooks6748
@griffinbrooks6748 2 жыл бұрын
it would be really cool if the enemy sloped similar to how the feet of our player slope to match the ground.
@darwizzler29
@darwizzler29 2 жыл бұрын
agreed
@mrfrog0913
@mrfrog0913 2 жыл бұрын
NEVER GUNNA GIVE YOU UP NEVER GUNNA PUT YOU DOWN!!! (: rick roll
@filipetrujeira3359
@filipetrujeira3359 2 жыл бұрын
@@mrfrog0913 *let you down* and it's not "gunna" it's "gonna"
@griffinbrooks6748
@griffinbrooks6748 2 жыл бұрын
@@mrfrog0913 NOnoOooOoo please do do this to meeee! what hav i done!
@sarmisthasahoo423
@sarmisthasahoo423 2 жыл бұрын
@@griffinbrooks6748 Never gonna give u up Never gonna let u down Never gonna run around and desert u
@Olive621_
@Olive621_ 2 жыл бұрын
Hope you had a great Christmas griffpatch
@griffpatch
@griffpatch 2 жыл бұрын
Thank you
@danilopantelic2957
@danilopantelic2957 2 жыл бұрын
@@griffpatch and i hope you will have a great time at home
@nonexistence00
@nonexistence00 2 жыл бұрын
Finally, enemies! Next might be: jump boosts, more enemy types (bigger enemies or enemies with better AI; possibly bosses), or maybe power ups (1ups and the like)
@theobaldtiu
@theobaldtiu 2 жыл бұрын
Yeppp
@worst_120
@worst_120 2 жыл бұрын
@@theobaldtiu and more like portals, potions and more collectable items!!! ^!^
@McSwee
@McSwee 2 жыл бұрын
@@worst_120 I already added 1ups to my game
@McSwee
@McSwee 2 жыл бұрын
It's not difficult
@mibsmartlearning9621
@mibsmartlearning9621 2 жыл бұрын
YESSIR
@KnightBolt-LBS
@KnightBolt-LBS 2 жыл бұрын
Congratulations with 100k subscribers, griffpatch!
@aryankhadela9253
@aryankhadela9253 2 жыл бұрын
also wanted to say since E3, I appreciate you for making a cat sprite pre-hand for us 😊
@griffpatch
@griffpatch 2 жыл бұрын
My pleasure :)
@rleung9463
@rleung9463 3 ай бұрын
Hi griffpatch !
@OP_Sahoo
@OP_Sahoo 2 жыл бұрын
sir in my game, when I did the move down code my enemy stays on screen for a bit moment and then it hides please help me out
@WolfyLionMonster
@WolfyLionMonster 2 жыл бұрын
I really love platforms and mini games like this, they’re really fun to play
@Scratcher_No-1
@Scratcher_No-1 2 жыл бұрын
Exactly!
@khlobbia
@khlobbia 2 жыл бұрын
I hope this tutorial will add more variety because right now it feels like all the platformers are getting very stale and generic
@rodgeangeroancelso6109
@rodgeangeroancelso6109 2 жыл бұрын
I agree
@rodgeangeroancelso6109
@rodgeangeroancelso6109 2 жыл бұрын
@@khlobbia yea
@Scratcher_No-1
@Scratcher_No-1 2 жыл бұрын
@@rodgeangeroancelso6109 same
@sunsky4288
@sunsky4288 2 жыл бұрын
Hey, congrats on 100k subs!
@sunsky4288
@sunsky4288 2 жыл бұрын
idk why do one has litterally metioned that lol (its a great achievment(i havent even got one subscriber xd))
@dannrobotdancer
@dannrobotdancer Жыл бұрын
i know your face now
@LittleChimp123
@LittleChimp123 4 ай бұрын
Wdym?
@Does_not_play_anything999
@Does_not_play_anything999 4 ай бұрын
his profile dudes or maybe not
@LittleChimp123
@LittleChimp123 4 ай бұрын
@@Does_not_play_anything999 scratch academy has a face reveal but this comment was last year so, yeah, it would be from the profile
@mr.sandman3619
@mr.sandman3619 Жыл бұрын
20:00 whaaaaat??? i've been using scratch for years and i just NOW find out that you can read sprite specific variables on other sprites? that's so usefull!!!
@MyNameIsKneoReal
@MyNameIsKneoReal 2 жыл бұрын
Just Wanna Say Your Vids Are Awesome!
@occcomic
@occcomic 2 жыл бұрын
Congrats on 100k!
@shaaravbhatia
@shaaravbhatia 2 жыл бұрын
Hi Griffpatch, (This is my second time asking) Just curious to know, do you have any plans for the super mario game?
@griffpatch
@griffpatch 2 жыл бұрын
I do plan to make another episode yes, but I'm not rushing to make it until i have made a few others first.
@cubee4108
@cubee4108 2 жыл бұрын
Hey uuh, quick question, are you planning on making any videos about making a 3d game using pen module?
@brooklynerickson6603
@brooklynerickson6603 2 жыл бұрын
Hey how did you set the 22 second world record on Scratch Getting over it if its even you? (if someone just used your name idk). Are you going to be uploading a video about it?
@temmie5764
@temmie5764 2 жыл бұрын
100k congrats!
@Scratcher_No-1
@Scratcher_No-1 2 жыл бұрын
Aaaaah! I love all your vedios cuz they're awesome!!
@CarsonDog8
@CarsonDog8 2 жыл бұрын
I would say Exiting Current Scene instead of about to change scene, does it fit?
@griffpatch
@griffpatch 2 жыл бұрын
Yeah, I should have done that
@thelegoreaper
@thelegoreaper 2 жыл бұрын
Wow this adds so much more to the platformer! Will yiu do collectable weapons?
@griffpatch
@griffpatch 2 жыл бұрын
I'd have to think about it
@-tylerrodgers-
@-tylerrodgers- 2 жыл бұрын
Why?
@CommanderAka
@CommanderAka 2 жыл бұрын
Pleasssseee I’m making a ninja game out off this 🥺🥺🥺
@Twin138956Productions2019
@Twin138956Productions2019 2 жыл бұрын
Happy new year 2022 griffpatch! :D
@TheAwesomeTortelini
@TheAwesomeTortelini 7 ай бұрын
2 years ago... time flies, huh?
@AsAwesomeEverything
@AsAwesomeEverything 2 жыл бұрын
How can someone not subscribe ? This is too good to be real!
@keithboyer2730
@keithboyer2730 Жыл бұрын
Eewdsdfwgwr 78otv txt b monogamy Ulloa TNT
@rainavnts8958
@rainavnts8958 2 жыл бұрын
I'm kind of desperate for help on an oddly specific problem I'm having. I can't tell whether it's Scratch glitching or if my code isn't right, but I want to fix it and I don't know who to ask.
@fridayfunkgaming291offical
@fridayfunkgaming291offical 2 жыл бұрын
First time watching the best Scratcher YTber other than the scratch team
@DogeisCut
@DogeisCut 2 жыл бұрын
I tried to add these into my scrolling game before this tutorial but they keep getting stuck in the ground when the screen scrolls. How do I fix this?
@Shiverandfears
@Shiverandfears Жыл бұрын
@griffpatch I want to ask how do you give the video game a soundtrack while playing?
@CarsonDog8
@CarsonDog8 2 жыл бұрын
Hey griffpatch, uhh my enemies cannot walk on slopes, but why?
@fluffygamingsheep
@fluffygamingsheep 2 жыл бұрын
An episode we have always been waiting for
@HarpreetKaur-in6em
@HarpreetKaur-in6em 2 жыл бұрын
Congratulations for 1 lakh subscribers
@rajanim8389
@rajanim8389 2 жыл бұрын
I was waiting to squish all those enemies , thanks @Girffpatch for this marvelous gift and wish you a Happy new year ahead.
@دانیاللامعی
@دانیاللامعی 2 жыл бұрын
Hello, it was great But I have a question, if we kill the enemies and go to another part of the game and come back again, the enemies will come to life! How can this problem be solved ??
@xtenser2633
@xtenser2633 2 жыл бұрын
OMGG you hit 100K SUBS!!! CONGRATS
@Jar.Headed
@Jar.Headed 2 жыл бұрын
Ok, this glitch is getting annoying, in my platformer, there is a chance my character loops between two adjacent scenes, this started appearing when I worked on the Collision system in tutorial 7 or 8. Any way to fix this?
@panpawe5474
@panpawe5474 2 жыл бұрын
I waited for this episode whole days
@DanielHCassidy
@DanielHCassidy 2 жыл бұрын
so i wanted to try something a little different so instead of jumping on enemies i created a claw variable which sets to 10 when i press b i use the tick - last to count it down to zero so it can be used again to get around touch the enemy i use the invulnerable varible and count is down with the tick last as well. Am i doing this all wrong.
@griffpatch
@griffpatch 2 жыл бұрын
Sounds inventive! Is it working the way you wanted?
@DanielHCassidy
@DanielHCassidy 2 жыл бұрын
Yeah pretty much. I have no nice animation to go along with it. But it was fun while I was test to go around with the claw variable reporting CLAW set to 10. I have a nested if else block in the enemy sprite first if check player and invul is 0 then I have a block to kill enemy. With the else being your player lose life block. The hit enemy sets claw to 0 sets invul to 30 switches costume and then deletes clone. However, what I haven't got is one of your nice frame scripts to make the whole thing look pretty.
@malygina4449
@malygina4449 2 жыл бұрын
Wow, it's already 2 853 watches! Love your videos, Griffpatch! Hope next are power-ups, like Fire Flower or Tanooki suit!
@Chef_Aaron1
@Chef_Aaron1 2 жыл бұрын
@griffpatch Whats the difference between the custom blocks and the broadcast messages?
@Bachtoukbik
@Bachtoukbik 2 жыл бұрын
Congrats for 100 K!!
@Mr.Futures1641
@Mr.Futures1641 Жыл бұрын
hello. I already have a speed y. When i add another for the enemy it works. The problem with having two speed y's is i can not squish the enemy. I tried to eliminate 1 but the game glitches. I don't know what to do. your example doesnt show if you already have a speed y variable what to do
@abeldoesthings873
@abeldoesthings873 2 жыл бұрын
Congrats on 100k subs!
@minegamer1346
@minegamer1346 2 жыл бұрын
Hello, griffpatch. I have a problem with the player. Every time i press the left or right arrow key, the player keeps on movin until i jump! I cannot find the scripts that control that in the Controls - Left and Right define block, or Start game and Reset and begin level. Please help me, i have a game contest, it's my first, and i want to have a good project.
@ethanbrayden8941
@ethanbrayden8941 5 ай бұрын
when i press the green flag the enemy is gone and won't comeback :(
@codingwithaditya1290
@codingwithaditya1290 2 жыл бұрын
You are a awesome Coder I wish that you got all success in life and you hit 10M very Fast 🔥🔥
@Brodigaming69
@Brodigaming69 2 жыл бұрын
:D
@Brodigaming69
@Brodigaming69 2 жыл бұрын
i dont follow the tutorials i just watch the videos because i find them intresting
@YourOrdinaryZohan
@YourOrdinaryZohan 2 жыл бұрын
For Some Reason, Every I make making the enemy die, every time i touching by walking keeps killing him. I don't Know Why...
@tyj90000
@tyj90000 2 жыл бұрын
Ayyy, congrats on 100k!
@RyanCole-x7k
@RyanCole-x7k 2 ай бұрын
For some reason my speed y isnt being set to 0, and i cant find the issue. Can you help? Its the players speed y
@Djjohnson-g5l
@Djjohnson-g5l Жыл бұрын
Thank you so much! making my own platformer and had to tweak it a little.........but it worked great!
@RenardioMFG
@RenardioMFG 2 жыл бұрын
problem, when I added the wait 0.3 seconds block in the if speed y of player is less than -3, the whole game froze for 0.3 seconds instead of switching to the costume squish for 0.3 seconds
@griffpatch
@griffpatch 2 жыл бұрын
Make sure that custom block is not run without screen refresh
@RenardioMFG
@RenardioMFG 2 жыл бұрын
@@griffpatch thanks
@PersonDoesStuff
@PersonDoesStuff 2 жыл бұрын
Hey why is there no lemon above the Move - Down block when i'm creating it. Does anyone know why?
@griffpatch
@griffpatch 2 жыл бұрын
lol
@studiodespenates
@studiodespenates 2 жыл бұрын
Here is the strange behaviour I found in this implementation (I'll try to make it as short as I can) : - When an enemy can walk to the edge of the screen (or almost the edge, whatever edge it is) - When the player exits the scene by the opposite edge of the screen to another scene - Sometimes the enemy clones from the previous kills the player as soon as the player enters the new scene (where there is no enemy). It feels like the "exit scene" event receiver where the clones are deleted hasn't finished deleting the clones when the player enters the new scene. I tried to put the broadcast "exit scene" in the first place of the "begin scene #" block but it doesn't change anything. You may find some cleverer way to avoid this but I work around this issue by using the new INVULNURABLE variable, putting it to "1" "begin scene #" block and to "0" at the end of the same block, just before broadcasting the "game loop" event. Thanks
@griffpatch
@griffpatch 2 жыл бұрын
Thanks for reporting that, I'll need to investigate
@amiriteLMAO
@amiriteLMAO 2 жыл бұрын
7:10 appel *seeing his enemy was made by griffpatch* flashback
@Angry_hamster1
@Angry_hamster1 2 жыл бұрын
If say my Enemy, was at the bottom of the screen touching the edge, he would shimmy at the bottom of the screen how should I fix this?
@griffpatch
@griffpatch 2 жыл бұрын
Good insight. It depends what you want your enemy to do... Despawn or turn around!
@Angry_hamster1
@Angry_hamster1 2 жыл бұрын
@@griffpatch But since I wanted it to turn around, he currently shakes non-stop at the bottom of the screen.
@kol.boss.2431.lil.k
@kol.boss.2431.lil.k Жыл бұрын
Hey griffpatch my enemy seems to be hiding when I enter the scene I want it to be in and when it shows nothing happens can I have help
@anaycoding6594
@anaycoding6594 2 жыл бұрын
How do I make it so that the enemies don't spawn when you have killed them? For example right now if you kill an enemy, go to another scene and then come back, it respawns. I want to have it so that if you kill an enemy and come back to the scene *only the enemy you killed* disappears.
@wildremiofwater...9086
@wildremiofwater...9086 2 жыл бұрын
I love the scratcharia's that you Made!!
버블티로 부자 구별하는법4
00:11
진영민yeongmin
Рет қаралды 18 МЛН
This mother's baby is too unreliable.
00:13
FUNNY XIAOTING 666
Рет қаралды 38 МЛН
World‘s Strongest Man VS Apple
01:00
Browney
Рет қаралды 55 МЛН
Smart Sigma Kid #funny #sigma
00:14
CRAZY GREAPA
Рет қаралды 6 МЛН
버블티로 부자 구별하는법4
00:11
진영민yeongmin
Рет қаралды 18 МЛН