Scratch Top Down Shooter (Ep. 1/2)
In today's Scratch tutorial, I show how to code a top-down shooter game in Scratch! Stay tuned for next week, because I will finish the shooter game AI!
🎮 Get The Game's Assets: The project on Scratch was taken down...
Thanks for watching! Please hit the like button and subscribe for future Scratch tutorials!
🔗 LINKS:
Scratch Profile Page: scratch.mit.edu/users/ShiftCl...
Night Ninja Scrolling Platformer: • Scratch | Scrolling Pl...
Cat Clicker tutorial: • Scratch | Cat Clicker ...
Tower Defense tutorial: • Scratch | Making a Tow...
How-to tutorials: • Scratch | How-To Tutor...
Get Scratch Addons: scratchaddons.com/
🧾CHAPTERS:
00:00 - Intro
01:05 - Project Assets
02:17 - Game Loop
02:38 - Player Movement
05:07 - Eye Movement
07:31 - Gun Movement
11:39 - Scrolling
12:27 - Bullet Stuff
16:23 - Outro
❗ DISCLAIMER:
This video is family-friendly! Hostile and/or rude comments will not be tolerated!
Пікірлер: 279
Thank you all so much for watching! This video was originally going to be a game in one episode; however, it ended up being REALLY long. That just means I had to split it into 2 episodes, so stay tuned for next week where I'll finish the game! :D
@ayandatta7230
2 жыл бұрын
BTW IM WORKING OF FLAPPY CAT
@ayandatta7230
2 жыл бұрын
I ALSO HAVE A REQUEST, PLS CAN U PROVIDE ASSETS CAUSE IM BAD AT DRAWING , LOL
@ayandatta7230
2 жыл бұрын
can u also provide arow keys
@RishanEdits10
2 жыл бұрын
:)
@Cleacat
2 жыл бұрын
The Assets?
Wow, I have no words, this is an absolute masterpiece, smooth animation, realistic graphics, awesome character development. 10/10. best game ever
@ShiftClickLearn
2 жыл бұрын
Thank you so much 😀
@musicmanmade
2 жыл бұрын
@@ShiftClickLearn get wooshed
@BedwarsBro371
2 жыл бұрын
@@ShiftClickLearn Griffpatch + any other scratcher utuber = ShiftClickLearn
@centycebra4447
2 жыл бұрын
@@musicmanmade trying to woosh but get wooshed
@BallisticLyrics
Жыл бұрын
Neuvlen
The great thing about shiftclicklearn is he’s not like other scratch KZreadrs. He teaches how to make VERY polished games and makes his videos and editing very funny! And you don’t really see that in other scratch KZreadrs.
@ShiftClickLearn
2 жыл бұрын
Aww, thanks a lot Kit! This is a really heartwarming comment! 💖 Edit: *polished* hehe
@hermanzainal2782
2 жыл бұрын
How about griffpatch?
@Rory432
2 жыл бұрын
Well yes, Griffpatch does make me chuckle sometimes, His videos are mostly focused on the coding. not saying he’s bad, but shiftclicklearn adds a bit more comedy
@Farleigh1050
2 жыл бұрын
@@Rory432 yup i agree
nice "series"! can't wait for the scrolling platformer version of this!
@ShiftClickLearn
2 жыл бұрын
:D
Cant wait to watch this keep up the good work
@ShiftClickLearn
2 жыл бұрын
Thanks a ton, ThinkIdk!
This is what I’ve been waiting for
@ShiftClickLearn
2 жыл бұрын
That's awesome!
First time watching your video and its already amazing! Keep up the good work!
You are by far my favorite Scratch KZreadr ever!
@UCHENNALUCYOKOYE
8 ай бұрын
ikr
You are extremely talented!
Excellent job. I loved it
bro your tutorial helped me make my best scratch game yet
Nice Tutorial. Very Very Polished, more than my toilet seat... and also what is the link for the discord? Edit : Shoutout plssssssssssss.🍒
@ShiftClickLearn
2 жыл бұрын
Ahh wHAT I deleted my Discord server due to toxic people.
@yathartanjanahan4898
2 жыл бұрын
@@ShiftClickLearn Ahh WhAT Aww Sad Times
i have been scraching for three years and i have not seen this type animation of smoothness before
congrats for hitting 10 k subs
@ShiftClickLearn
2 жыл бұрын
Thank you so much 😀
Dude thanks you so much I always wanna make a shooting game in scratch thanks man
I like your videos!
@ShiftClickLearn
2 жыл бұрын
Thanks!
waiting patiently for the next episode !!!
@ShiftClickLearn
2 жыл бұрын
:D
hello when ever i shoot a bullet it spawns off screen to the right, the bullet is not off center, do you have any idea why this would happen? (its something to do with the x and y position as when i remove it it only spawn in the center and the bullets down spawn at the gun)
I love ur videos
@ShiftClickLearn
2 жыл бұрын
Thanks!
BRO THANK YOU REALLY I WAS TRYING TO MAKE THE GUN TURN WHEN IN A CERTAIN ANGLE BUT THE CODE WASN'T WORKING AND YOU HELPED ME THANK YOU
cant wait
@ShiftClickLearn
2 жыл бұрын
:D
i need help whenever I make it spawn a bullet it will always spawn far away from the bullet in the opposite direction
Great video sir! Learned alot from this! How would you go and add the eyes to the enemy and have them follow the player when it pops on screen? Thank you in advance!
OMG THX SOOOO MUCH. BECAUSE OF THIS I'M SUBBING
Hey! Thanks for the great video. Love from India...
@ShiftClickLearn
2 жыл бұрын
Hey, thanks! ♥
The bullets spawn way back behind the gun and every time I fire another bullet the first one spawns with the new one
Exited for this new series!
@ShiftClickLearn
2 жыл бұрын
Thanks! It's just a small 2 episode one! :D
I just finished and I am so happy and proud :) Ty for tutorial.(I wanna make it multiplayer to play with friends though just a cool little idea :) )
@penguinpenguin3156
2 жыл бұрын
I hope you do! :D
why do I get rickrolled by an ad on ur videos? (great vid btw!)
@ShiftClickLearn
2 жыл бұрын
lol ty
Wait i requested to make this game and you replied SURE :D
@ShiftClickLearn
2 жыл бұрын
:D
can you add a reloading animation and mechanism aswell as a melee weapon?
This is REALLY helpful. i got +85 followers on scratch, and the game BLEW UP! this tutorial AND game helped a lot. Keep it up!
THANK YOU SOOOOO MUCH 😭😭😭😭👌🏿👌🏿👌🏿👌🏿
Hey man i have a problem where when i scroll it on the slider it only moves my character and not my screen could you please give me some advice :)
First To see and comment!!!!
@ShiftClickLearn
2 жыл бұрын
Awesome!!! :D
@UnderPaidHarvey
2 жыл бұрын
No I was
@gauravanshkumar3949
2 жыл бұрын
You every video is amazing!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@gauravanshkumar3949
2 жыл бұрын
@@UnderPaidHarvey Oh! ok I am second...
*Shift clicks* (Good video btw)
Thank you for the video i am a kid and i like scratch so thankyou
I know this video is a year old, but the "Move (steps) steps)" block doesn't let me put anything in the boolean. Any fixes?
Me after 1 hour after watching his video : WHERE IS PART 2????? WHERE IS ITTTT??????
@ShiftClickLearn
2 жыл бұрын
LOL NEXT WEEK!!!!!!!!! Yay, I think it's so cool you're excited!!!!!! ♥♥♥
is this the next BIG series you were talking about in the community project
@ShiftClickLearn
2 жыл бұрын
Nope! This is just a small one! :D
I should make this !!
@ShiftClickLearn
2 жыл бұрын
Yeah! Have fun!
amazing
i have a question, if my gun stops shooting for no reason, what should i do?
THANKS
How do you do the quick new broadcast message? I have scratch addons, but I don't know what it's called. :P
@ShiftClickLearn
2 жыл бұрын
It's called "Searchable dropdowns" I believe! :D
please help when i shoot the bullet it follows the y of the player but not the x
Thanks
for some reason the way he holds the gun gives me madness combat vibes
How can i do a boomerang shooter? Example: like the Thor hammer??
WOWW I'M COMMENTING!
Someone please help me, for some reason, The gun doesn’t shoot whenever I move. But when I’m still, they do. Why???
I LOVE the tutorial, but it would be BETTER if it had a lobby/loading screen like other gun games.
@darealmrman2266
6 ай бұрын
Its really just a base, you can add the menu screen yourself by changing when flag is clicked to when message is broadcasted
Sorry this might come off as rude but personally I think this is fast and doesn't say what he's doing just switches without telling thats all
Personally when I use the bullet method it keeps spacing below or above the gun and when the positioning is right it will shoot up or doen
@ShiftClickLearn
Жыл бұрын
Is your bullet costume off centered?
@Be-CONCERNEDJK
Жыл бұрын
@@ShiftClickLearn no
when i shoot the bullet it also pulls the player and idk how to fix it since my brain is smooth af
@kimberlymcdonald3859
Ай бұрын
same
hey, so I'm using Griffpatch's Lemonoid movement script for my game, and I can't get the thing to work, can you come up with something, please? (It would be a lifesaver!)
My player y says infinity. how do i fix it?
why mine the bullets go the oposite of the mouse any help?
Very helpful tutorial, but would the wall collision system from the previous tutorial still work? And is it possible to make the bullets hit enemies that are off screen instead of just deleting them self at the edge?
@ShiftClickLearn
2 жыл бұрын
The wall collision will work! (You might have to change the movement in this game.) For the bullets hitting offscreen enemies, that would be challenging, but possible. I think you would have to store all of the bullet/enemies position in a list then check if the positions are close. Then if they are delete that clone. That's just a guess off the top of my head tho.
@zancrniveckalar2593
2 жыл бұрын
@@ShiftClickLearn this would probably work, thanks!
quick question: what do the sin and cos blocks do? Im not really into this complicated math stuff..
@ShiftClickLearn
Жыл бұрын
Hey, from the little I understand about them they're trigonometric functions that output a waving number. (0, 0.1, 0.2, 0.3, 0.2, 0.1, 0, etc.) Cos stands for "cosine" and sin stands for "sine". Hope this helps. :D
@calmguitar8530
Жыл бұрын
@@ShiftClickLearn Thank you so much! I was having alot of trouble understanding what they where used for, but that ended up clearing everything.
"Epsiode 1" yor spulling iz gud!
@ShiftClickLearn
2 жыл бұрын
lol oops
Help the camera scroll x thing isn’t moving my player
Just a question, how do you think I should approach giving the enemy a gun?
@ShiftClickLearn
2 жыл бұрын
That would be a cool challenge! :D I would start by add another clone for the gun that follows each enemy. Maybe have a list of positions for the enemies that way the gun would know where to go. (You would have to give the gun/enemy matching list IDs.) Then I would just make the gun point at the player and randomly shoot bullets. You'd need to use a different method for cloning, that way if two enemies shoot at the same time, BOTH enemies still create a bullet. You could try to use this one: kzread.info/dash/bejne/g2VlvNGzobi5k9I.html
@wongmondoroko1027
Жыл бұрын
siap!!!!!!
idea: make the bullets into cookie bullets
@ShiftClickLearn
2 жыл бұрын
Ooooh, that sounds cool! You could do that in your game! ;D
WOOOOOWWW IM COMMENTING ON SHIFTCLICKLEARN
WOOWWWW IM COMMENTING
there's a bug were the bullet's do not go up or down and some times they go slow
13:17 I have a bug going on with the code right here. I put the exact same code, word for word, but it is not working. Any ideas on what would be going wrong? The bullet goes a little bit right of the x of the gun and for the y it goes down a lot from the gun.
@ShiftClickLearn
Жыл бұрын
Hmm, is the bullet's costume off centered? That could cause the issue.
@jvjanicek
Жыл бұрын
@@ShiftClickLearn That was it. Thanks! love your vids btw ❤
BTW, Happy new year!!
When I put in the whole "Move (steps) steps" thing, the bullets keep spawning where the gun ORIGINALLY was instead of it's current positon?
@tophatzcoolness
Жыл бұрын
Actually, I've figured out what the problem is. The "Move (steps) steps" isn't making the bullets move, infact they're staying in 0,0 constantly.
@ShiftClickLearn
Жыл бұрын
Did you figure the issue out?
@tophatzcoolness
Жыл бұрын
@@ShiftClickLearn No.
This is hard but you make it super EZ. xD
@ShiftClickLearn
2 жыл бұрын
I'm glad it was easy for you 😁
@mohamedamineabbassi6179
2 жыл бұрын
@@ShiftClickLearn
I’ve got to say i prefer griffpatch’s one but still nice tutorial
@ShiftClickLearn
2 жыл бұрын
Thanks.
@ShiftClickLearn
2 жыл бұрын
Griffpatch is cool. 😎
There’s a glitch where when I shoot sometimes the bullet appears on the gun handle
@ShiftClickLearn
2 жыл бұрын
Maybe add a wait 0 seconds then show?
amazin
@ShiftClickLearn
2 жыл бұрын
Thanks!
How can you do _x and _y
Me: ITS TIME TO MAKE A SUPER ULTRA REALISTIC BULLET *makes a black rectangle*
helps
WoW it's same what i'm make
@ShiftClickLearn
2 жыл бұрын
That is quite complex...
bro why when i shoot my character moves for no reason
Haha you go bruuuuuuuu
@ShiftClickLearn
2 жыл бұрын
????????
No one: That one kid in class:
@ShiftClickLearn
2 жыл бұрын
lol
Nice channel
@ayandatta7230
2 жыл бұрын
U are sooooooooooooooooo funny Like ur vedios
@ShiftClickLearn
2 жыл бұрын
Thanks!
How can you make a package sprite? plz make a video for it. I will like
@ShiftClickLearn
2 жыл бұрын
A package? Like a box?
hello great video but my y cords dont work instead it moves along the x axis
@Forest_turkey
4 ай бұрын
update im dumb
Bruh the cube wont slip around n the start even though i did it exactly how you did it
@ShiftClickLearn
Жыл бұрын
Do you mean it won't move? Maybe try looking at the final game's code.
I'm just using this to flex,ok? Don't blame me,yes.*deep breath*I USE THIS TO FLEX! Also,thanks for the idea!
I did something and now it does not want to move with the player on the x axis. pls help
@ShiftClickLearn
Жыл бұрын
Check your x movement code- did you put the correct code inside the block? (Change x by key d - key a and all that stuff.)
@MatthewJacobDDAVID
Жыл бұрын
I was talking about the gun
Can you do a top down survival game
but it doesn't shoot upwards or downwards for me
gamer
@ShiftClickLearn
2 жыл бұрын
y e s
Can u help me my gun won't move
i need help my bullet is attached to my player
HELP ME , Im Just Doin This I Just Finished . BUT THENNNNN I TEST IT AND BOOOMM , THE BULLETS JUST SAY " Im Very Slow Now " AND I LOOKED OVER THIS THING LIKE 10000000 TIMES , DEAR GOD HELP MEE
Yo isn't this like a scroll game?
@ShiftClickLearn
2 жыл бұрын
It is!
Which version of scratch is this 🤷♂🤷♂
🥰🥰🥰
tripled your subs in a year
can you send me the part 2
this is very good soup id like a version that is a platformer really love this but i can't find the link so i made my own but making the size and width same and oh yeah i used the cat blocks form the #scratchaddons settings yeah and now my scripts have the cat blocks from #Scratchaprilfools2020 and i like and if you want to have cat blocks from #Scratchaprilfools2020 just open the #scratchaddons settings and open the cat block feature you can have the cat blocks form #scratchAprilfools2020 but i saw a waring before using this cat block feature and it said ⚠The "Watch mouse cursor" option may impact performance when the editor is open ⚠ it was there for anyone who want to open the WATCH MOUSE CURSOR option but anyway love you #shiftClickLearn and everyone
@ShiftClickLearn
Жыл бұрын
Awesome! The project was taken down from Scratch sadly... :(
@calmguitar8530
Жыл бұрын
This #comment made #me lose my #braincells
instructions unclear i can hold the mouse and it would create so many clones of the bullet pls help
@random-qt9if
3 ай бұрын
put wait 0.15 seconds after creating a clone