Code a Multiplayer Scratch Game | JOINING | Episode 2
Continue to code our multiplayer Scratch game, we look at how to get 100+ players to join a single cloud game! In this second tutorial we will be looking at how to smooth our player motion using buffering lists, and how to allow any number of players to join our game even with only one cloud variable! Yes that's from 1 to 100+ players! Crazy right?
▶️ Watch Episode 1 - • Create an Epic Multipl...
▶️ Watch Episode 2 - • Code a Multiplayer Scr...
▶️ Watch Episode 3 - • Awesome Cloud Clones!!...
▶️ Watch Episode 4 - • Make a Multiplayer Pla...
▶️ Full Playlist - • Griffpatch's Epic Mult...
🐱 Scratch Studio - scratch.mit.edu/studios/33558...
Upgrade your Scratch Games to be online multiplayer cloud games by following this exciting new Scratch Tutorial series. Whether you want just 2 to 8 players, or over 100 players, I will show you how it can be done using my newly developed fully backpackable cloud MMO engine. Any kind of game can be converted to online from platformers, space shooters, io games, 3d games, tile based scrollers, yes anything! Have you seen my recent MMO platformer or MMO minecraft? or slither.io Cloud Platformer Multiplayer Fun? Well now it's your turn! Let's get Scratching :D
🐱 Some of my Cloud Games
MMO Platformer - scratch.mit.edu/projects/6122...
MMO Minecraft - scratch.mit.edu/projects/8431...
Cloud Platformer Fun - scratch.mit.edu/projects/1278...
Slither.io - scratch.mit.edu/projects/1085...
Taco Burp - scratch.mit.edu/projects/4787...
▶️ More Video Tutorials & Fun!
/ griffpatch
🚀 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
-------------Video Chapters-------------
0:00 Intro
0:29 Movement Tweening vs. Buffering
1:54 Two sprites - “My Player” & “Cloud Player”
4:17 Rework the Cloud Player Sprite
6:56 Encoding the player’s buffered motion
8:30 Player 2 has joined the game
11:46 Player UID
13:06 Watching for Cloud Variable Updates
14:57 Who changed the cloud variable
17:37 Handling New or Existing Players?
22:53 Next Episode
#scratch #griffpatch #mmo #cloudgaming #scratch3 #online #codingforbeginners #blockcoding #cloud #cloudgaming #learntocode
Пікірлер: 1 100
I still don't know what "mod" does :(
@griffpatch
Жыл бұрын
It gives you the remainder after dividing by a number. So 4 divided by 3 is 1 remainder 1 ( because 3 goes into 4 once, and leaves 1). So 4 mod 3 = 1
@star80doessdastuff
Жыл бұрын
remainder division basically, im pretty sure you learn it in 4th or 3rd grade depending where you are
@SBZome
Жыл бұрын
@@griffpatch Oh, thank you!
@peej10do91
Жыл бұрын
@@griffpatch And 7 mod 3 is 1, too, to avoid confusion from the answer to 4/3 being 1 r1.
@thenewboeguy_official
Жыл бұрын
@@griffpatch Griffpacth plssss tell me why my cloud data is updating without me moving it’s getting annoying
Man, Griffpatch you are just so kind! The way you talk so friendly and spend your time to help us is so heart-warming, you have grown so much and it makes me happy. A scratch youtuber with over a quarter million. It's amazing what you have done with scratch and all of the limits that you have pushed. You are a scratch prodigy and I've literally never seen a scratch youtuber smarter than you. I have been using scratch for 3 years and I consider myself a great coder but I am nowhere near your level. Thank you for providing us with amazing videos and content and I hope you live an amazing life! God loves you. :)
@luanngo1682
8 ай бұрын
Agreed
@phongnam5653
8 ай бұрын
We should make a first shooting multi player game
@magicsnake1000
28 күн бұрын
Ive been thinking about this over the course of this video lol
@SuperXianya
15 күн бұрын
SAME!:)
@PradyumnanRamesh
7 сағат бұрын
Ur right bro
this is so cool you manage to make scratch into a proper game engine and still are able to explain it so simply
the editing is amazing! i especially love the first 30 seconds
@griffpatch
Жыл бұрын
I spend a lot of time on those first 30 seconds as it's more about what people are seeing, then later it's more coding so I focus on that!
@Ingeniouscraftyguy
Жыл бұрын
Griffpatch is a greatest scratch de in the universe he is amazing
@WhunderCh
5 ай бұрын
@@Ingeniouscraftyguy hes literally the best hes the #1 scratcher global, he has more than even the SCRATCH CAT
One question: You pick each player's UID randomly. So, it might happen that two or more players can have the same UIDs. Then what?
@griffpatch
Жыл бұрын
It's incredibly unlikely to happen... Like so so unlikely. But to be absolutely sure we can either scan for in use IDs or encore the username & an id together
@KanvaMvinay-qk9fp
Жыл бұрын
@@griffpatch i hate griffpatch. How does make amazing projects!!
@elsiemoran6911
Жыл бұрын
@@KanvaMvinay-qk9fp HOW DO YOU HATE GRIFFPATCH
@stefanandrejevic2570
Жыл бұрын
@@griffpatch if you encode the username why would you encode the id too?
@David12_
Жыл бұрын
@@stefanandrejevic2570 Because of trying with 2 windows that are with the same account.
Griffpatch always does the most insane things! I don't know how he does it!
@chrisabood9102
Жыл бұрын
same like whatttt
@arandomguyscrolling2023
Жыл бұрын
He does it with scratch lol
@Anikin3-
Жыл бұрын
you're on the video
@crackerpooppop
Жыл бұрын
@@Anikin3- what do you mean
@user-bs1un5zf2i
Жыл бұрын
Yes
Griffpatch is the best scratcher on the planet, the work you do is absolutely amazing :) Keep it up!!
@MUHAMMADADAMZAFRANBINMOHAMADSU
Жыл бұрын
I don't think so
@NaraSherko
Жыл бұрын
@@MUHAMMADADAMZAFRANBINMOHAMADSU Why? You never coded before
@pickandshot
Жыл бұрын
He isn't (ggenije and llama), but he's undoubtedly the most reliable, entertaining, and interesting overall.
@zockerwelt4936
Жыл бұрын
@@pickandshot maybe timmccool is better, but griffpatch is the king of scratch
@NaraSherko
Жыл бұрын
@Boom Battlefields Griffpatch made a raycaster
The moment you realize you can comment before the video has even started.
@dabpenquin
4 ай бұрын
But you can’t right 🤔
@KatTheCaz
4 ай бұрын
@@dabpenquin Well I was able to. But its quite long ago so I dont remember doing this.
@keshido1
3 ай бұрын
ikr
absolutely deserves the number 1 spot for followers on scratch!
I love your videos and projects and contributions to the community. Even though I quit scratch a year ago, I still enjoy seeing development on big projects like this. I did check out this game a few days after you published it, and it was really impressive and I even managed to find you in the lobby once!
You know it’s a good day when griffpatch uploads.
@elfstar7514
Жыл бұрын
You know it's a good day when it's a good day.
@MonkFeet10
Жыл бұрын
It do be true though.
Griffpatch is the BEST scratcher with the BEST tutorials. He teaches all his tricks with his viewers.
@lincekawaiilindi5422
Жыл бұрын
Agree 100%. Will_Wam is as good as griffpatch, but has a bit less imagination and making tutorials
@Scratchvideoz
Жыл бұрын
How!!!!
@JMS-ji3qp
5 ай бұрын
no
The video is absolutely insane, the shear scale of the episode given in a nice user friendly tutorial. Griffpatch truly is next level.
I have now started to learn C++ and am looking to continue my game development journey elsewhere. Thanks for all the amazing learning opportunities you have provided me with over the years. I will likely still watch your videos for the cool concepts and fundamentals you provide though. Thanks for everything!
@umikaliprivate
Жыл бұрын
c++ really? stop right now! you're gonna regret this decision. learn something like go, rust, or even c instead. you're gonna spend nights trying to find that one memory leak, while with something like the rust borrow checker, you don't need to worry, it's just that rust has a very confusing syntax. c will definitely make the problem easier, and go is one of the best programming languages, because it has a great garbage collector, it's great for many things, the syntax makes sense, and is easy to read, I think you should learn go instead.
@1-1_is_2
Жыл бұрын
I have now started to learn Python the snake
@umikaliprivate
Жыл бұрын
@@1-1_is_2 yea, python is pretty good, just don't ever add 0.1 + 0.2 in python.
@kplays_6000
Жыл бұрын
@@umikaliprivate There's nothing wrong with learning C++, as someone who has built my entire career on it. It's one of the most used programming languages in the game development industry - Unity and Unreal Engine are built in it, as are the vast majority of in-house engines and tools. If you want a serious game development career, you need to know either C/C++ or C# for Unity. Python is good, as is Rust, but you're more likely to use them as part of a toolchain or in general non-game software development.
@umikaliprivate
Жыл бұрын
@@kplays_6000 yes, that is true, but sometimes it's definitely annoying to use.
Love your tutorials man! One of my best Scratch projects was made using your old cloud engine. Can't wait to see how the new one turns out!
IVE BEEN WAITING! im making a multiplayer "Find the _____" Games
@NaraSherko
Жыл бұрын
Make find the fireies, find the leafies, find A bfdi
@NaraSherko
Жыл бұрын
Also find the scratch cats
@G-Rayz
Жыл бұрын
@@NaraSherko mine is apples
I have been checking your channels multiple times to check if episode 2 comes out and it finally came!🎉
@griffpatch
Жыл бұрын
@@im3061 YES absolutely!
@NinoReto
Жыл бұрын
Same
@Arthuranima
Жыл бұрын
Same!
@Rfisna
Жыл бұрын
@@griffpatch Oh boy I'm excited to see people's MMO games how well they did on it! :D
I love following these tutorials when they come out. Great job Griffpatch!
Wow! Thanks for showing episode 2, I've been actaully waiting for weeks for the episode to come but it's finally here, I already made episode 1 and recently episode 2, I can't wait for episode 3!
How do people dislike this stuff? You're doing god's work
@bluetoadmaker
Жыл бұрын
Them 5 people thought it was not good enough for them
@HeartBreaker7155
Жыл бұрын
It dose not work for them
@Scratchvideoz
Жыл бұрын
Bro
This is amazing griffpatch, your tutorials are incredible and super-useful!! Thanks
I love griffpatches tutorials they are so easy to follow!
I love thus tutorial series. I'm going to be using this to make an online game inspired by The Legend of Zelda and Pokemon. Thanks Griffpatch! Can't wait for the next episode!
Very cool! Waiting for the next episode! :D
I cannot wait for the next episode!!!
so insane! this is why i really like griffpatch! he's so good at scratch! :)
I never thought this idea! Super!👍🏻👍🏻👍🏻
These tutorial are really helpful! Can't wait for part 3!
Yay finally a 2nd episode!
What Griffpatch does is simply amazing; he explains such complex programs so simply so that everyone can understand it.
it makes me happy that someone is willing to teach strangers (mostly kids in fact) how to make complex things in a simple manner :D
FINALLY I'VE BEEN WAITING FOR THIS!!!
With this new data storing, could you make chests in the multiplayer game work? Making each chest slot as a spot where data is stored and shown might work. Also I loved this video.
@griffpatch
Жыл бұрын
Certainly we can take a stab at it, there are just a few things to consider! :)
@cataclysmi
Жыл бұрын
@@griffpatch Will you ever make a 3D platformer?
@thethree13o
Жыл бұрын
@TheDumbOne-ty2mq he sorta did: griffpatch's 3d laser tag. Definitely had platformer engine and capabilities but he used them for laser tag instead
@LucasStMars
Жыл бұрын
@@cataclysmi i'm asking the same question lol
It's finally here! I love these videos!
Been loving these tutorials! Keep up the good work! ❤❤
How does this man come up with his projects? It's like he can speak the language of code.
@griffpatch
Жыл бұрын
I can
@arkmusic8948
Жыл бұрын
@@griffpatch Nice! So can I. We might share the same mathematical gift. 👍
@rka3477
Жыл бұрын
@@griffpatch Nice
@lincekawaiilindi5422
Жыл бұрын
@@griffpatch console.log("I can too");
@fridayfunkgaming291offical
Жыл бұрын
@@lincekawaiilindi5422 print("me too")
im making this and im so happy this episode came out so quick
Can’t wait for episode 3! You are amazing!😂
@JMS-ji3qp
Жыл бұрын
Oj 8:27 ok
Did he create scratch
@AffectionateCanoe-vc4hj
Ай бұрын
NO!
@Redi_Incidents
Ай бұрын
@@AffectionateCanoe-vc4hjBro chill💀
@SansTheYtber
Ай бұрын
@@AffectionateCanoe-vc4hjWHY THE HELL ARE YOU SCREAMING oh sorry forgot to disable caps lock why the hell are you screaming
@Erenjaen
Ай бұрын
@@AffectionateCanoe-vc4hjyou still kid to scream someone dumb
@scarlett8211
27 күн бұрын
He is scratch
Griffpatch, the way you teach is just amazing, and I always have fun while watching you. So keep up the good work Griffpatch! You are amazing!
@homesharing2366
Жыл бұрын
Tysm for the effort you put in these videos! Never stop
Very good griffpatch. You never disapoint anyone :)
Super, thanks. All the best🎉
Father: "Ok, child, what's the magic word" Griffpatch: "Run without screen refresh."
Griffpatch's tutorials makes scratch's complex things easy and simple when he explains it
Lots of lists! Love it! ❤
I am HYPED for Episode 3 because this is the kind of magic I wanna master! Now that I think abot it, magic and programming is sorta the same.
This is great! Thanks for speeding up a little
best stream of all time, great tutorial and pretty chill chat. nice!
I’ve been done since the day you uploaded this so I’m just rewatching this everyday day for fun until you upload lol
Nice vid as always! 😊
Basically been waiting on this forever, im good at coding normally but i kinda fall apart when i get to cloud scripts, i have so many ideas ive wanted to try that i couldnt because i could never wrap my head around cloud variables properly. Keep up the good work mate
Always the best scratcher out there!
good work griffpatch :D keep it up!
I don't use Scratch a long time ago (aprox. 1 year), but this is so new and splendid to me I'll probably visit Scratch again! Thank you griffpatch! Btw I would never come up with a code idea like this, it's just too good. The only thing I notice is the UIDs are never checked if repeated, so if BY CHANCE two people get the same UID, it will break a bit. Anyway, great job! Edit: I actually like the most when you didn't put music, but at least it's not bad
Nice tutorial as always griffpatch!
cant wait for episode 3!!
Thanks griffpatch! I can't wait for the fully backpackable cloud engine!
I love griffpatch’s tutorials!
I am going to watch the next video for sure!
I'm going to try and make a mini animal crossing game were players can catch bugs and fish all in one island! Love your work Griffpatch and hope you are having a nice day! 👍👍
tysm Griffpatch for this awesome tutorial! I can't wait for episode 3. I have been wating to make an mmo game for soooooooo long. ty. :)
@honker2
Жыл бұрын
28s ago
@griffpatch
Жыл бұрын
Glad I could help!
I love your tutorials Following lemanoids currently in a zombie game style.
@griffpatch
Жыл бұрын
Oh what a fun remix idea!
Thanks griffpatch! Your tutorials are really easy to learn and it is really fun! Keep it up!
new videos of griffpatch are like free sweets for me.
Another amazing vid!
You can use a date time for the UID. In scratch you ave "days since 2000". That return a float value which includes microseconds. The chances that two players click to join in the same microsecond is almost zero.
@jjsanimations
Жыл бұрын
pair it with a "pick random 0 to 9" to be unstoppable
Thank you for this tutorial you are the best teacher in the world.I had been looking for an infinite multiplayer game coding tutorial thank you for coming up with this amazing video idea I will make amazing games with this.
@griffpatch
Жыл бұрын
Yay
@PurpleAfton486
Жыл бұрын
@@griffpatchReplied to my comment😱
I CANT WAIT EP 3!!!
These tutorials are just mind blowing, keep it up!
I honestly can't wait until next episode of these series appears. My plan is to make Counter Strike Global Offensive on Scratch, and with the help of griffpatch, this will be possible! Love your vids bro.
Hey griffpatch thx so much ❤❤❤ love your channel😊
THANK YOU SO MUCH GRIFFPATCH!
Yay! Episode 2 came out! Will you go over how to make characters with different costumes in a future episode? For example instead of two orange scratch cats it's an orange and red scratch cat.
Wow,it works.I cant wait to continue and watch part 3 tomorrow :D
He always posts at the right time; when we all need a tutorial about something ;0)
another nice tutorial released at 5 in the morning for me yay
this helped so much, I was tryna figure out how to do this for ages, and now I have done it!
Thank you so much for this tutorial and by the way how did you make this tutorial
Yay Episode Two I Just Like Seeing Them But I Know There Are People Creating There Own Cloud Games With This Tutorial :D
I cant wait for episode 3! griffpatch is the best and smartest scratcher alive! he has more subscribers then the official Scratch Team,that just proves he is insane :)
Im so hyped fo part 3 bros
When this series is done, i'm going to turn one of my games (Don't touch the walls! @lincolnXgames) into a multiplayer one! It's going to be fun seeing a bunch of people on a hard level! XD It only contains like 10 levels right now, there are going to be more mechanics like keys & doors, slide walls and more!
@griffpatch
Жыл бұрын
Wow can't wait
@ultradangerous8758
Жыл бұрын
@@griffpatch hi how are you
@adamthecreator55
Жыл бұрын
Can you make a tutorial about how to make a smash bros game
@thenewboeguy_official
Жыл бұрын
or maybe remake a roblox game like that one game where you go in little pockets of space to avoid a big walls i think its get crushed by a speedy wall
@Jyxa.
Жыл бұрын
@@thenewboeguy_official Get Crushed by a Speeding Wall
Griffpatch please make a new series on scrolling platformer, with features like super long jump, smooth player animation. The physics like those of MMO platformer.
Your tutorials are awesome! speaking of your tutorials, are you going to do the next tutorial in your RPG series? It's one of my favorites, and you said in the last episode of it you would do another episode.
Gooo griffpatch!! I saw vid after 1hr after upload!, YAAAAAAY
Wow. I loved your video explaining how you crashed Scratches cloud limit, but I never thought you would teach us how to code it!
Can't wait when the next episode cones
The little scratch dancing at the end gave me an idea of making an online project where it's just the cat moving around by me
This tutorial is OUT of this WORLD🌍
Where'd the spider project go?
I was watching the mouse pointer lock video and I had a thought. If you are ever needing a break from this MMO project and want to do a smaller, off-topic video, could you make one about making a project compatible with all of turbowarp's enhancements? Like higher framerate, different aspect ratio's, exclusive extentions and the scratch extentions addons? Actually I just thought of 2 other ideas, what if you made a video about Gandi IDE (I assume you have heard of it) and all the possibilities with the extentions it offers, I honestly find them so interesting. Or what if you made shorts with little tips and tricks like what Scratch Tutorials (Funut) used to do? Sorry I just randomly thought of so many ideas and needed to jot them down. Please consider them.
i do not follow your tutorials anymore but i watch them and enjoy
Good video really helped
@Sigmachad442
Жыл бұрын
I am @collosalanimater
Helped me out a lot thank you
@griffpatch
Жыл бұрын
No problem!
nice sfx addition btw
Hey GriffPatch awesome work. You are are a Scratch master. I just want to know if you'll ever make a "how to make a beat em up game" tutorial, and a "how to make a fighting game" tutorial, please. Once again, awesome work.
so good this was like my 5th try making a online game it helped SOO much thank you best scratcher EVER
Griffpatch is the only scratch KZreadr that I will watch even if I know how to do the things in his tutorials
i cant wait until next video
@griffpatch
Жыл бұрын
IKR... It's going to really bring this thing home :)