Scratch Platformer Game | 9. Collectables, Keys & Doors

  Рет қаралды 431,474

griffpatch

griffpatch

Күн бұрын

Code an exciting Platformer in Scratch. Learn how to add loads of collectables all around your level, add keys with an item inventory and doors to be unlocked. This is turning out to be a rather awesome puzzle platformer! Oh, and we also add sounds! :D
My tutorials are for all budding game & software developers using Code Blocks. Scratch On guys!
🔥 Pen Outline Effects Tutorial - • WANT AMAZING PEN EFFEC...
🐱 Scratch Studio (post project here) - scratch.mit.edu/studios/30657...
👀 Next Episode #10 - • Checkpoints, Game Over...
👀 First Episode - • Code a Platformer Game...
👀 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 Visual Upgrade / Reskin
2:32 Let’s get Scratching
2:43 A Single Collectable Sprite
5:28 Collectable Scene
6:39 The Null Room
8:22 Collectable Clones
9:47 Sprite Ordering can cause bugs
13:26 Multiple Collectables
15:15 Reducing Scripts with Custom Blocks
18:10 Preventing Accidental Touching during Setup
19:05 Animating Collectables with classic bobbing
21:32 Collectibles Count
22:10 Keys and other Special Collectables
24:02 Customizing Collectable Actions
24:57 The Players Inventory List
26:11 A Locked Door
28:34 Scripting the Locked Door
30:37 Door Sounds
33:41 Lose a Life and Jump sounds
36:13 Outro - And One Final Apple

Пікірлер: 1 100
@kinge.-_-.e
@kinge.-_-.e 2 жыл бұрын
Great! How do I have the game change backgrounds when going in a certain stage?
@griffpatch
@griffpatch 2 жыл бұрын
Add a when receive Change Scene in the backdrop sprite, and using an IF ELSE to switch backdrop when SCENE # = the special scene's number. You'll have to remove the other background switching script in their that makes the scene red on collisions.
@text.txtext
@text.txtext 2 жыл бұрын
@@griffpatchi think this trick might work: that was naming the backdrop to the specific scene number
@sunilsae
@sunilsae 2 жыл бұрын
@@text.txtext yup
@Seven71987
@Seven71987 2 жыл бұрын
Will there be a part 10?
@eyallevin6302
@eyallevin6302 2 жыл бұрын
@@griffpatch Thats what I did 5 episodes ago!
@Salithin
@Salithin 2 жыл бұрын
Griff: “Oops, I died! But it’s far too quiet” Me who already made a death sound: “I’m four parallel universes ahead of you”
@liyueAmy
@liyueAmy Жыл бұрын
Same here
@ricardosantos2599
@ricardosantos2599 5 ай бұрын
@@liyueAmy 23:55 Ich möchte, dass du 15.37.35 bekommst, um Schlüssel und keinen Apfel zu essen
@Farleigh1050
@Farleigh1050 2 жыл бұрын
I like how griffpatch is funny a little bit (like the suspicious key at 22:40) but he also shows us how to make really cool projects
@PolishDude1122
@PolishDude1122 Жыл бұрын
Yeah, I seen it
@Cyberfishofant
@Cyberfishofant Жыл бұрын
suspicious key?
@Farleigh1050
@Farleigh1050 Жыл бұрын
@@Cyberfishofant look at the last option when he puts ‘key’ in search
@Cyberfishofant
@Cyberfishofant Жыл бұрын
​@@Farleigh1050so more like 22:41 , but i see it now'
@abijaharts
@abijaharts 6 ай бұрын
The fact that the game is called *Appel* and we just used Apples as collectibles is coincidental-
@hakkerkat
@hakkerkat 2 жыл бұрын
what I like about griffpatch is that you actually understand the things he says, unlike other tutorials, where you just copy everything.
@darrelsworld
@darrelsworld 2 жыл бұрын
yeah he so good
@qwertyuiop.lkjhgfdsa
@qwertyuiop.lkjhgfdsa 2 жыл бұрын
Yeah He actually teaches you, as opposed to what most zctual teachers do where they just go "this is what you do" with no explanation
@Wmafateh
@Wmafateh 2 жыл бұрын
Youga
@Wmafateh
@Wmafateh 2 жыл бұрын
Benie
@alexanp7958
@alexanp7958 Жыл бұрын
someone with fax aka: hakkerkat
@johnpn6747
@johnpn6747 2 жыл бұрын
The editing is slowly getting more interesting and funnier Also, I love your informal voice now :D :) :D
@duck9850
@duck9850 2 жыл бұрын
griffpatch says: that big apple is no match for poor Scratchy, lets's scale it down a bit also, griffpatch: at the end of the platformer game, let's make a big apple
@Ducki_Quack
@Ducki_Quack 2 жыл бұрын
m
@tylerpechenik6444
@tylerpechenik6444 Жыл бұрын
lol
@daniyaldawar9149
@daniyaldawar9149 4 ай бұрын
bruh@@Ducki_Quack
@baplios
@baplios Ай бұрын
@@Ducki_Quack m
@Twin138956Productions2019
@Twin138956Productions2019 2 жыл бұрын
The tutorial is so very great. Unlocking doors is the key to that.
@Salithin
@Salithin 2 жыл бұрын
I see what you did there!
@Spartan-117.
@Spartan-117. Жыл бұрын
@@Salithin bruhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
@nick_fous
@nick_fous Жыл бұрын
21:29 that "Chomp" 😂
@pramudia9999
@pramudia9999 2 жыл бұрын
Combining the awesome score counter with this makes it look very good!
@siyahseeker
@siyahseeker 2 жыл бұрын
This is cool. Not every game has to have scrolling, and these type of games are much easier to create and play around in. Besides, the player might not know what to expect in your game because there are so many branching paths and different obstacles in each scene. I call it "screen-by-screen" gameplay.
@AnarchyTime
@AnarchyTime 2 жыл бұрын
Yay 1 minutesago thanks for the turtorial :) This looks like a long one!
@Dylpicklepotatochips
@Dylpicklepotatochips 2 жыл бұрын
I was about to code my own collectibles and key doors before seeing your video. This one saved me a lot of time and frustration. Thanks!
@griffpatch
@griffpatch 2 жыл бұрын
You are welcome!
@TemporaryDemotivated
@TemporaryDemotivated 2 жыл бұрын
10:13 i like how you put a *DUN DUN DUUUN*
@phatphap365
@phatphap365 2 жыл бұрын
- I just can't get over how beautiful this is.
@KaydenAP
@KaydenAP 2 жыл бұрын
thanks so much griffpatch I've wanted this for so long :)
@Xenogeneticon
@Xenogeneticon Жыл бұрын
The funny part about the "null room" is that "null" means zero in German
@moonlightgaming3067
@moonlightgaming3067 2 жыл бұрын
I'm so excited for this!
@thatguymaty
@thatguymaty Жыл бұрын
“We sent the apple to a different place” TO BACKROOMS 💀 7:52
@iaminfinityiq7182
@iaminfinityiq7182 Жыл бұрын
if you want to reduce clones, just switch the hide block when the player collects it into delete this clone block :)
@xdxrling.
@xdxrling. 2 жыл бұрын
This is amazing,! I wish I watched it sooner xD You upload great vedios, in a great schedule, Your instructions, are so clear!
@lukeninja032
@lukeninja032 2 жыл бұрын
So excited, couldn’t wait
@thecovid-pizzamcpgp4522
@thecovid-pizzamcpgp4522 2 жыл бұрын
I seriously paused the video and made my own custom block before you said anything about it but I knew you would make one. Honestly I like my block better even though it's pretty much the same thing.
@quak9803
@quak9803 2 жыл бұрын
Dude I just got up and I was checking my phone and I literally got so excited when I saw this!!! Thank you for posting so many videos on such a great schedule!
@griffpatch
@griffpatch 2 жыл бұрын
Hope you enjoyed it!
@GamingStudiosX
@GamingStudiosX 2 жыл бұрын
Same xd 😂
@Adventure_Epic
@Adventure_Epic 2 жыл бұрын
lol you two wake up too late, he uploaded it at 12 pm lol
@quak9803
@quak9803 2 жыл бұрын
@@Adventure_Epic my time zone it was like 7-ish
@grewpet2253
@grewpet2253 2 жыл бұрын
@@Adventure_Epic when i saw it he uploaded it here at 7 pm
@mustaeenrahmanzarif5983
@mustaeenrahmanzarif5983 2 жыл бұрын
Great 😃👍! Thanks and Appreciate all your effort man! I love your videos:)
@cranthony2498
@cranthony2498 2 жыл бұрын
Truly amazing explaining much love
@PerlVeemo
@PerlVeemo 2 жыл бұрын
finally! I needed this
@yaboi7701
@yaboi7701 2 жыл бұрын
I LOVE these tutorials thanks so much!
@mstratakis_scratch
@mstratakis_scratch 2 жыл бұрын
I think your tutorials are very exciting and useful
@antex_
@antex_ 2 жыл бұрын
I have _no_ words... *THIS IS SO AMAZING*
@LeGnocchi
@LeGnocchi 2 жыл бұрын
22:40 xD Suspicious key (PS: I really want an update for Appel!)
@laackofpaack8255
@laackofpaack8255 2 жыл бұрын
I think to clone the apples with the place block easier, you could make another broadcast named “Place Apples” and bring the Place block triggers under it, broadcast it when it receives Setup. Edit: it could also be another custom block though
@dragondude7107
@dragondude7107 2 жыл бұрын
I think enemies and a way to defeat them (other than just jumping on them) would be really cool. But don't feel pressured by anyone, you can do whatever you want.
@johnxu2334
@johnxu2334 2 жыл бұрын
i love the dramatic music when the apple disappears!
@EElectro001
@EElectro001 2 жыл бұрын
OH YES!!! IM SO HAPPY! Anyways, I always had problems with collectables. Thank you!
@griffpatch
@griffpatch 2 жыл бұрын
Glad I could help!
@pjpenguin2667
@pjpenguin2667 2 жыл бұрын
22:41 *among us drip remix plays* Get the reference? XD
@kylesin7655
@kylesin7655 2 жыл бұрын
Hey! This is going pretty well and I think this series is great! Also, why don't you add diving in a future episode?
@ericz6809
@ericz6809 2 жыл бұрын
Nice sus key in the sprite library! 22:41
@MaroDiamond9
@MaroDiamond9 2 жыл бұрын
1:05 Sliding Lemon. 5:42 "Guy" Is Trying To Spy On Us. 11:21 Appel... 22:40 Appel Is Pretty Sus.
@ian_adam
@ian_adam 2 жыл бұрын
I used this script to make a scrolling platformer with clouds and secrets that are needed to get to the next world I thought that level sprite switching costumes was a little boring so I toss it up a notch making the doors and collectables render in and move when on screen was the best part
@Crafter_100
@Crafter_100 2 жыл бұрын
Wow, thanks! 11:14 appel bug
@YTBlueDream
@YTBlueDream Жыл бұрын
I like star collectables:) You did a good job,thanks man!
@WimVanraes
@WimVanraes Жыл бұрын
for Sprite ordering bug you can add a show block right under when I start as a clone
@cst1229
@cst1229 2 жыл бұрын
The reason all those sounds match the word "oops" is because they have the Loops tag in the source code, which also matches the word "oops".
@griffpatch
@griffpatch 2 жыл бұрын
Hehe... Yes, I guessed something along those lines... Silly matching ha!
@kingstonten
@kingstonten 2 жыл бұрын
oh
@cristianospohr69
@cristianospohr69 2 жыл бұрын
sus
@TheEpicBeeBoy
@TheEpicBeeBoy 2 жыл бұрын
thats so stupid tho
@simoncollion4205
@simoncollion4205 2 жыл бұрын
Random guy: Hey, your projects are cool, who is your teacher. Me: Griffpatch
@NewtYT
@NewtYT 2 жыл бұрын
1:04 LOL. He says fresh and a fresh lemon just pops out of nowhere!
@thebmeister7
@thebmeister7 2 жыл бұрын
How would I include the sounds of footsteps? The running scripts have gotten a bit more confusing than left goes left, right goes right. Thank you so much for the incredible amount of work you've put into helping all 150,000 of us in need of help. Love your videos!
@alexanp7958
@alexanp7958 Жыл бұрын
im brainless when it comes to coding but i figured out a way to add footsteps and a jump sound you have to go someplace in the controls for each desired section although i cant remember those places due to being unable to run my game properly so i had to delete them but the best alternative to footsteps is: make a sound similar to stepping in sand MAKE SURE ITS ONLY ONE FOOTSTEP and then tweak however you like and make sure its in a forever loop until you let go of the keys
@jeditz8
@jeditz8 2 жыл бұрын
Let's appreciate how this is exactly 37 minutes
@griffpatch
@griffpatch 2 жыл бұрын
Lol - yes!
@chillis_concoction
@chillis_concoction 2 жыл бұрын
Exactly
@gloz6662
@gloz6662 2 жыл бұрын
its 36:59 for me eeeee
@johnpn6747
@johnpn6747 2 жыл бұрын
Nah. It's 37 minutes on the thumbnail, but 36 mins and 59 secs on the real video.
@RavivLadaga
@RavivLadaga 2 жыл бұрын
@@gloz6662 that's a youtube glitch that happens sometimes with EVERYONE, it's kinda annoying
@animye0322
@animye0322 2 жыл бұрын
You're Underated I like your tutorials so much!
@kotucheniy5527
@kotucheniy5527 3 ай бұрын
you can just name the sounds which different collectables should do the same as the collectables themselves. you can then play sound costume name.for example, you could rename the chomp sound as "apple", and then play sound costume name, which will also be "apple". it will involve less hardcoding this way.
@dozyrandom8625
@dozyrandom8625 2 жыл бұрын
my coin did't work for some reason can you please help it add 9 i don't know the problem?
@ericsser
@ericsser 2 жыл бұрын
This is No1 of my favorite scratch account! : D
@griffpatch
@griffpatch 2 жыл бұрын
Woohoo!!!
@improvisestudios
@improvisestudios 2 жыл бұрын
I love seeing a new griffpatch video, even though I didn't see this for a day
@solsomnium7186
@solsomnium7186 2 жыл бұрын
composing a theme song is something i would really like
@smth35
@smth35 2 жыл бұрын
some enemies could be good, or power-ups that enable OR disable some of the mechanics that Scratchy can do...
@looyuze4370
@looyuze4370 2 жыл бұрын
The key sound can be the sound "collect" or "Magic Spell".Also adding a pushable box will be a great idea.
@hominh6005
@hominh6005 2 жыл бұрын
omg, I have been waiting for so long
@grandestag
@grandestag 2 жыл бұрын
I needed this video!
@heavyisfunny24
@heavyisfunny24 2 жыл бұрын
I have an Idea for the Enemies! What about a collectable Sword to slash them? And some Enemies need multiple hits?
@smth35
@smth35 2 жыл бұрын
I have already made a gun shooting system and a charging system
@heavyisfunny24
@heavyisfunny24 2 жыл бұрын
@@smth35 *a sword,* not a gun
@smth35
@smth35 2 жыл бұрын
@@heavyisfunny24 i meant that i have already made a weapon
@iishoya1925
@iishoya1925 2 жыл бұрын
I love your videos their are so helpful
@User-lm1ll
@User-lm1ll 2 жыл бұрын
Great tutorial!
@shuvangprankashyap9609
@shuvangprankashyap9609 2 жыл бұрын
"When he uploads, my day gets better!" "Who is he?" "GRIFFPATCH!"
@westheidk
@westheidk 2 жыл бұрын
Can you make enemies and checkpoint next?
@beebotherobot.
@beebotherobot. 2 жыл бұрын
10:12 this is why I joined your channel subscription, griffpatch.
@manukahero9764
@manukahero9764 2 жыл бұрын
Holy moly, that's the first time he says something funny in 23:56, though they are very good videos
@kinokino8949
@kinokino8949 2 жыл бұрын
It became very helpful
@CODPlayer-Official
@CODPlayer-Official 2 жыл бұрын
I've putted in the notes in the game info made out of griffpatches amazing teaching skills.
@ramonopia
@ramonopia 2 жыл бұрын
0:55 OMG, 2 MILLION messages? I thought i never checked my mail... btw, great video!
@stevencastanares4590
@stevencastanares4590 Жыл бұрын
Really helpful thanks!!
@IsItLucas
@IsItLucas 2 жыл бұрын
For those that thinks that the pen is useless, those effects has completely changed the project's mood and style
@svshhsbs
@svshhsbs 2 жыл бұрын
i wanted to make one of these, thank you for teaching me
@Koeninn
@Koeninn 2 жыл бұрын
This guy is a true legend!
@SparrowTutorialsFun
@SparrowTutorialsFun 2 жыл бұрын
Great Work!
@VillaQa
@VillaQa 2 жыл бұрын
Epic! Do you have any clue how to make background music in a forever loop without interfering with the collectables sound?
@Demind1650
@Demind1650 Жыл бұрын
I love the dun dun dunnnnnn part :)
@theawakeningknight
@theawakeningknight 2 жыл бұрын
NICE ! So cool
@RhinoDudeWozz
@RhinoDudeWozz 2 жыл бұрын
Keep up the good work griffpatch
@user-kf6sl1ek7f
@user-kf6sl1ek7f 2 жыл бұрын
This is sooooooooooooooooo fun to play when it 's done!!!!!!!!!!!
@scratcherkw
@scratcherkw Жыл бұрын
Great job ❤
@nguyenlongphinguyen4621
@nguyenlongphinguyen4621 2 жыл бұрын
Thx for a lot of information
@Sklider97Youtube
@Sklider97Youtube 2 жыл бұрын
That's cool, I love that
@lingqintu8098
@lingqintu8098 2 жыл бұрын
Griffpatch: We lost a life! Me: *see's scratch cat dancing*
@user-tq7oz3bc7u
@user-tq7oz3bc7u Жыл бұрын
So good!
@Drachenbauer
@Drachenbauer 2 жыл бұрын
i apply the outline and shadow in the gameloop: under the other broadscasts there at first an eraser block from that drawing-addon, than a broadcast for the effects. Al sprites recive the broadcast and run their effects-blocks- So i could apply the effects to moving stuff too. And because of this i never use hide and show, because this causes black stamps of hidden objects, where they should not appear. I switch between the needed costume and an empty one instead. for the items i made a variable for this sprite only, that stores the costume-name as item type for each clone so i can give it always the right costume if i need to show it. And i made a little change for the up and down pulsing of the items: At the top of their "start as a clone"-script i store their y-position in an "old y"-variable for this sprite only and than i set their y position (instead of change) to ((old y) + ((9) * ([sin ▼] of (frame)))) this makes it puls between exact 9 pixels above and below the y-position-input. So if you maybe create a tiled level design, you can place the collectables exactly in the middle of a tile position and you can make it stop and reverst it´s movement right before touching the top and bottom tile-edges by adjusting the value, that is 9 in my sample.
@shraddhamoharir8078
@shraddhamoharir8078 2 жыл бұрын
Thanks Griffpatch. You are best scratcher in the world. I like your every video
@griffpatch
@griffpatch 2 жыл бұрын
Wow, thanks
@hacker_guy1000
@hacker_guy1000 2 жыл бұрын
Do you know if there is anyway to have the shadow script running on the player without overriding the shadow script for my level sprite. My player shadow is erasing the level shadow and outline and I can't figure out how to have them both work because there is no erase all for a specific sprite
@mysteryhoganims2293
@mysteryhoganims2293 2 жыл бұрын
Hey Griffpatch! I have a question on how I can add more animation to my jumping i have tried so many things
@Abhilasha84
@Abhilasha84 Жыл бұрын
so helpful!
@shushuenot6416
@shushuenot6416 2 жыл бұрын
Hello! I really liked the video! But may I ask you something? May you somehow "Explain" how to make a key 2 and door 2 and actually make them work? Please?
@backjack5407
@backjack5407 2 жыл бұрын
Me and my friends used to your terreria and geometry dash at school, gona make some games soon based on these turorials
@MsBeanzee
@MsBeanzee 2 жыл бұрын
i honestly think that "pixelate" is more satisfying than "ghost"
@tcat9281
@tcat9281 2 жыл бұрын
I made a different block for animating platforms, and its quite similar to yours. it's: Animate Platform at X: (X) Y: (Y) to X: (X2) Y: (Y2) for (time) seconds in direction (dir) time before move again (wait) Pretty long, right? But it works just the same!
@mr.everything2414
@mr.everything2414 2 жыл бұрын
congrats on 100k subs!!!
@anpham-2012
@anpham-2012 Жыл бұрын
“corporate needs you to find the difference between *null room* and *backrooms* ” Me: they’re the same word
@ItzpoomAV1
@ItzpoomAV1 2 жыл бұрын
Suspicious key 🗝️ look kinda suspicious it looks like appel! I like when you put a lot of easter eggs!
@Canatuga
@Canatuga 2 жыл бұрын
Do you know how I can make a clone follow another clone? I’m trying to make an enemy with a trail effect in my game.
@mathwhiz165
@mathwhiz165 2 жыл бұрын
Thanks for all the awesome videos, griffpatch! I've been noticing the Appel sprite everywhere in your series. I wonder if it's some sort of a clue...?
@brosthestickmandude
@brosthestickmandude 2 жыл бұрын
it's either some sort of easter egg or yknow just mascot
@spawnnumber2126
@spawnnumber2126 2 жыл бұрын
22:40 I love how suspicious key is Appel
@McSwee
@McSwee 2 жыл бұрын
Hey man, thank you for doing what you do. These videos are really helpful and well made!
@hoaquynh8721
@hoaquynh8721 2 жыл бұрын
Wow! You have a suspicious key sprite in your scratch library :)) It's Appel :D
@neptune7682
@neptune7682 Жыл бұрын
fun fact: the null room is place that can exist! if you make a level costume called "level" without any numbers, you can set up a floor and mess around with the collectables that have been transported there. you can only access it within the code though, so it's still a different dimension.
@Street_Productions123
@Street_Productions123 11 ай бұрын
And then give it look like the backrooms 😂
Checkpoints, Game Over & Game Menu | 10. Scratch Platformer Game
24:54
Code a Platformer Game | 8. Moving Platforms
35:29
griffpatch
Рет қаралды 307 М.
Spot The Fake Animal For $10,000
00:40
MrBeast
Рет қаралды 169 МЛН
DAD LEFT HIS OLD SOCKS ON THE COUCH…😱😂
00:24
JULI_PROETO
Рет қаралды 15 МЛН
Your Questions Answered 🏆 Scratch 100k Unboxing!
17:05
griffpatch
Рет қаралды 87 М.
My Scratch game got 1,000,000 views so I made another one
7:36
How I Made Geometry Dash In Minecraft
32:13
CraftyMasterman
Рет қаралды 660 М.
How to Design a Level for Appel
34:51
griffpatch
Рет қаралды 333 М.
Finally! We have "Stretchy Sprites" in Scratch - Full Tutorial
21:43
NOOB vs PRO vs HACKER Scratch Game
11:07
ZonxScratch
Рет қаралды 338 М.
Making a COZY Monster Raiser in Scratch
5:24
Goodgis
Рет қаралды 673 М.
NEVER DO this on SCRATCH ! | EP 3
10:55
SL Smart Mind
Рет қаралды 1,2 МЛН
Make a Multiplayer Platformer in Scratch | Cloud Tutorial #4
16:47