The most commonly reported issue that followers have encountered is many clones being created rather than just one for a joined player. I will investigate your projects if you comment your scratch username below and share the project. If anyone had this problem and fixed it please comment below for others benefit! I will help as soon as I can :) but I believe the scripts as recorded are correct! 😅
@@griffpatch Can you help me as it all works just when i have 2 projects running it starts to jump and get buggy the game is called cloud test ep3 by the user Macinx106
I have learnt more from Giffpatch than from my Informatics teacher tbh edit - Woah I never thought this will get that popular lol, and I am in 5th-6th grade so I do Scratch in my Info class, and yes I changed IT with Informatics to not make other people confused.
each day, i am waiting in school to go home and watch your tutorials, when you have not uploaded, i just watch your latest videos, keep up the good work!
I doubt you’ll see this griffpatch, but I’m a huge Minecraft fan, and when my friend showed me paper minecraft in 5th grade I would always play it on my school iPad and get yelled at lol the save feature is also amazing keep doing what u do man also u deserve way more subs my guy can’t believe the top 3 scratch games are ALL made by you so yeah. This comment is probably longer then like 90% of my school projects lol. So thank you griffpatch, thank you for paper minecraft!
This is really cool and much more flexible than the original and I can't wait for Episode 4 edit: The UID thing has a problem where it _might_ pick the same UID as another player and even if it isn't likely, it might lead to some problems or something and also I found out that making the UID too long breaks the system
Griffpatch: "Make a new variable called 'CLOUD CHANNEL'" Ad, immediately after: "Do you wanna grow your UA-cam channel?" Me: no not that kind of channel
I have a Splatoon shooter game i’m making and my goal this month is to make it completely online just like the original Splatoon! I would love to see how online can be integrated in shooter games!
There are still some MAJOR things missing: - We don't have a player list. We can't really identify a player number that's the same for everyone playing - No turbo mode detection so people can't cheat - Handling max player limit I feel like these are absolutely necessary for most cloud games on scratch
hey, I'm Zagesboy and wanted to say I love your work and everything you do to help people learn I appreciate what you do, and glad people are very grateful to have someone like you around keep up the great work and make others happy you're a true sprite and see a very inspirational person I seen. Thank you!
Its actually possible to make this use only one sprite by cloning the sprite twice and give it a "for this sprite only" id, we can set this id to "player" and "cloud player" for the 2 sprites. The cloud clones can have "cloud clone" id. This makes it easier to backpack
I would like to see it be made into a smash bros type game! I think it would be cool to go against online opponents. I was also wondering if it's possible to have people have accounts in the game so that you can friend people and play with them.
My cloud clones keeps flashing in and out of existence, anyone know why? I assume it has something to do with the inactivate variable since taking out the hide block results in the blinking to stop (but then they don't hide after 150 frames (5 seconds)).
Hey griffpatch: I discovered a fun trick that makes cloud variables easier, preventing the need to check if a sent value is your own, or have a list of previously sent values! It can be done with a main forever loop like this: at the start of the loop, read any cloud variables that aren’t the letter ‘x’, at the middle, send the data every fourth tick, and at the end of the loop, set all the cloud vars to the letter ‘x’, since this is not a number, the change will only be on this computer. Setting them to ‘x’ immediately cancels any values from being read by the same computer, and also makes sure that every value received is recent, and only received once! I tried it on my own device, and it really works!
Can you show us how to make a matchfinder online engine and a hosting servers for players engine?? I love your videos and I Will like to see more multiplayer tutorials ❤❤
griffpatch you are such a great scratcher and i have watched all of your videos i dont have any more tutorials lol. I love all of your videos griffpatch
Thanks for doing all this for us. You have helped me build my own games and with your awesome score and text engine video you have my whole game. Thank you
Just for future people who might have the same issue I had... If your cloud player is teleporting to the mouse and random positions, it's because your "encoded string" variable is supposed to be "for this sprite only" in the cloud player sprite.
I guarantee you, Griffpatch is the kind of guy to make the most complex things, such as algebra, trigonomotry, any other programming language that isn't scratch, and turn them into the easiest things on earth
I think you can detect when a user left the game by encoding the timer block. For example the timer block is quiet for 5 seconds just mark the user as left game.
Man your the best teacher couldent get the leving working but after a bit i realised im just dumb and forgot the data packet so i got it to work hofaly you will make more of theas GRATE vidios i know i will try to make my own in the futer to help more like you do :)
Thank you so much for reading my comment that I made 2 weeks before and getting ready for my Monkey meyhem v:2.2 shooting game, I am so happy and I am waiting for the NEXT EPISODE!!
@griffpatch is the best scratch teacher ever, change my mind. I just made a stop button detector. In my example, it says the id that left the game. The only time my method wouldn't work is if a player closes their browser.
this might be a little far fetched, but what if there theoretically were different instances of the game so as to reduce lag (unless I missed something cause i hadnt had time for scratch lately)
Thank you SO MUCH for making this tutorial, i was trying to make a multiplayer game but the other videos won't work, so im glad you make a tutorial about this, Thanks very much and have a nice day!
I've always enjoyed Griffpatch's tutorials and playing his games on Scratch. And I have a suggestion on what you can make with this code: an online golf game. People can play against each other and it would be really fun.
MY THEORY ON HOW WE KNOW PEOPLE HAVE LEFT THE GAME: they stop changing the cloud variables lol So yeah to make sure this works, we need to write the last time each player changed the cloud variables, and each player must modify clould variables even if they have nothing to change just to say "hi i'm online ! Don't delete me hoo !! "
You were even more thorough than I was by including the modify loud variable trick. I was going to do just that, but as it turns out, that is not quite as necessary in the MMO engine since each player overwrites each others cloud data all the time, so even an unchanged re-post of the same data will override someone else's cloud data often enough that we know the player is still there.
Updating the cloud variable to have an extra value to say that it’s changed would be necessary using the system where each player has their own cloud variable, though.
for checking if the player is offline, you use a variable that increments everytime which clears when a player outputs data, and when it's too long the player dissapears. what if we made a new list for every player online, and when the player outputs data, we set the value of the variable before resetting it into the list? this will help for checking the ping of the user, like for example "40ms" or "130ms".
I think that might not work because of one reason. The players x and y on the screen and other such stuff could make the variable long enough to activate the automatic kick out.
@@tmstv5561 the automatic kick out is only when the player stops outputting values on the cloud variables (which will stop the ping from being calculated) but it will not happen when the x and y from a player doesn't change, as the player still outputs data saying that he's just not moving.
to know when a player leaves you need to make a new variable called timer and add a when green flag clicked hat block then add a forever loop and set the variable timer to timer then add a when timer greater than the variable timer hat block and now you can detect when the stop sign is clicked
Ah finally somebody who uses the stop clicked thing I made (I noticed I was the only one that did it and this is the exact same) did you use mine because that's the exact same one I use and nobody else does
hey griffpatch! amazing tutorial as always, but I have a question/issue with my project. if I dont add any movement for the 'my player' sprite (everything the same just without the dancing scripts) then if I test it and leave them not moving, each screen shows the other players flashing. I'm assuming its something to do with the inactive 5 second thing but I'm not entirely sure why. edit: I haven't changed anything but the issue has seemed to disappear.
Griffpatch, I suggest a constant variable used for empty values: In the stage, set ‘[empty value]’ (for all sprites) to letter 6 of Apple (or anything that you know is blank) For safety, set the variable first, and then check by using the length of block, say ‘length of ‘[empty value]’, and make sure it’s zero Btw I really love your videos, pls keep it up ❤
The most commonly reported issue that followers have encountered is many clones being created rather than just one for a joined player. I will investigate your projects if you comment your scratch username below and share the project. If anyone had this problem and fixed it please comment below for others benefit! I will help as soon as I can :) but I believe the scripts as recorded are correct! 😅
My username is builder43, it's the most recent project
EDIT: Thanks for everyone who helped me, it works now.
My username is lulcake132 and the project is called Cloud multiplayer
What about clone limit?
@@EntoDucki true
Will you ever create an actual 3D level? (similar to that one platformer)
Griffpatch is that teacher who makes learning fun
I hope so!
@@griffpatch yes the tutorials are very easy to follow. I like how you explain things aswell
The old science teacher
@@griffpatch Can you help me as it all works just when i have 2 projects running it starts to jump and get buggy the game is called cloud test ep3 by the user Macinx106
@@LionGorrilaTagwhat device are you on?
This is so bizarre how this can work so simple yet look so difficult. Griffpatch is the best teacher when it comes to scripting in scratch!
100% true
TRUE!
I have learnt more from Giffpatch than from my Informatics teacher tbh
edit - Woah I never thought this will get that popular lol, and I am in 5th-6th grade so I do Scratch in my Info class, and yes I changed IT with Informatics to not make other people confused.
School: ❌
Griffpatch: ✅
lol
that too on scratch not javascript or python
Not true for me
You should say MIT teacher 😂
I honestly can’t believe the incredible things Griffpatch does; and only in 3 videos!
Watching this now makes the old tutorials of multiplayer look as basic stuff. This is amazing.
No one can replace griffpatch❤❤!
Only unity can cus it makes money, but its not scratch
I know a few that can replace me
Me I can make it without tutorial lol
@@ianfarquharson2933 I wasn't talking about that I can obviously make this easily without tutorials
@@OttoDoesOCs He wasn't replying to you
It's AWESOME how many things Griffpatch has accomplished!
Keep up the good work!!!
Griffpatch tutorials:
- easy, simple to follow
- fun, enjoyable
IT Teacher:
- hard, difficult to follow
- not really fun
Great Video!
Facts
Imagine Griffpatch As Your IT Teacher
@@baconboy1800 would actually be amazing
@@baconboy1800 Oh yeah
+joni
each day, i am waiting in school to go home and watch your tutorials, when you have not uploaded, i just watch your latest videos, keep up the good work!
just like me
I doubt you’ll see this griffpatch, but I’m a huge Minecraft fan, and when my friend showed me paper minecraft in 5th grade I would always play it on my school iPad and get yelled at lol the save feature is also amazing keep doing what u do man also u deserve way more subs my guy can’t believe the top 3 scratch games are ALL made by you so yeah. This comment is probably longer then like 90% of my school projects lol. So thank you griffpatch, thank you for paper minecraft!
Hey there! So please you love my content - Do you Scratch yourself or are you more of a gamer?
So excited to see a new episode!
He secretly created Scratch and makes epic tutorials exposing different strategies to make it more epic!
Griffpatch teaches me more than my 20 coding books combined
Not your average coder he is a god he probaly could've recreated this universe in scratch maybe in a few months
@@thelogicalgamer-bv7tk Give the guy some time at least he still needs to optimize it
@@thelogicalgamer-bv7tk I know I just added a pinch of logic in there
Me too, 😂
🤣lol🤣
that is one of the most fun tutorials I ever saw. thank you griffpatch. I am a new subscriber 😊😊
Woohoo!
I’m making 2 games at the moment; a top-down arcade-style racer, and a 2D golfing game. I can’t wait to add great multiplayer to both of them!
Griffpatch in 2027: How to recreate Skyrim in Scratch with just 1 asset
I have been waiting for this! Yay
This is really cool and much more flexible than the original and I can't wait for Episode 4
edit:
The UID thing has a problem where it _might_ pick the same UID as another player and even if it isn't likely, it might lead to some problems or something and also I found out that making the UID too long breaks the system
I can't manage time for scratch anymore but still watch griffpatch videos.
Griffpatch: "Make a new variable called 'CLOUD CHANNEL'"
Ad, immediately after: "Do you wanna grow your UA-cam channel?"
Me: no not that kind of channel
this did NOT happen to you 😭 did it
I have played literally all of Griffpatch's games on scratch. They are the GOAT!
I have a Splatoon shooter game i’m making and my goal this month is to make it completely online just like the original Splatoon! I would love to see how online can be integrated in shooter games!
i'm literally doing the same
Whenever you upload, I drop everything to watch it. Thank you for these tutorials. They helped me get started in scratch!
There are still some MAJOR things missing:
- We don't have a player list. We can't really identify a player number that's the same for everyone playing
- No turbo mode detection so people can't cheat
- Handling max player limit
I feel like these are absolutely necessary for most cloud games on scratch
Thanks Griffpatch now I now how to create a online game
I think for the next episode, the best idea is to create an online scrolling platformer :) But let's see what people want
L e m o n ?
i kinda want the regular platformer for my roblox style game using griffpatch’s platforming engine
@@skyfish2104 lemon !!!
Take his old scrolling platformer and put in this tutorial. Then you have that.
@@orrinpants dont forget to replace the set x blocks to the variable x and y
hey, I'm Zagesboy and wanted to say I love your work and everything you do to help people learn I appreciate what you do, and glad people are very grateful to have someone like you around keep up the great work and make others happy you're a true sprite and see a very inspirational person I seen. Thank you!
I'm only at the start of this video and it's already very helpful!This video is amazing!
griffpatch is a legend no-one can replace him
Its actually possible to make this use only one sprite by cloning the sprite twice and give it a "for this sprite only" id, we can set this id to "player" and "cloud player" for the 2 sprites. The cloud clones can have "cloud clone" id. This makes it easier to backpack
We will only need to backpack the cloud sprite, the other players sprite is our game
@@griffpatch oh that makes sense, when is the next rpg episode?
Im not actually following the tutorial, im just watching for fun, and seeing you code has inspired me to continue coding in scratch. Thank you!
Awesome!
@@griffpatch love your videos! Dont stop making them!
same lol
I just got done with ep 6 on the tile scrolling and I have a brand new tutorial ready for me lol😂
hey griffpatch, could you make a series about unity? that would be awesome! keep up the good work!
with griffpatch's tutorials, it's very easy to combine them to make a huge game!
Whohoo finally some true action! I am really excited to see the projects that use these. From this point on, its just creativity! 😺
I would like to see it be made into a smash bros type game! I think it would be cool to go against online opponents. I was also wondering if it's possible to have people have accounts in the game so that you can friend people and play with them.
THANK YOU SOOO MUCH GRIFFPATCH YOUR MULTIPLAYER TECHNIQUES WILL BE THE BASE TO MY GAME!!
My cloud clones keeps flashing in and out of existence, anyone know why? I assume it has something to do with the inactivate variable since taking out the hide block results in the blinking to stop (but then they don't hide after 150 frames (5 seconds)).
did you end up fixing it? i have the same issue :(
@@KennethPlaysOfficial It's been a while but I believe I just restarted the whole series from scratch and listened very carefully
@@frostberry putting a move 0 steps block at the top of the player tick block fixed it for me somehow…. 💀
@@KennethPlaysOfficial Player Clone Tick?
why was there a in the middle of the episode
Waking up to see griffpatch uploaded! Yay!
I really love Griffpatches tutorials, They help me make awsome games, and they are fairly simple.
Love your vids Griffpatch 😊
woo was the first to watch comment and like
Hey griffpatch: I discovered a fun trick that makes cloud variables easier, preventing the need to check if a sent value is your own, or have a list of previously sent values! It can be done with a main forever loop like this: at the start of the loop, read any cloud variables that aren’t the letter ‘x’, at the middle, send the data every fourth tick, and at the end of the loop, set all the cloud vars to the letter ‘x’, since this is not a number, the change will only be on this computer. Setting them to ‘x’ immediately cancels any values from being read by the same computer, and also makes sure that every value received is recent, and only received once! I tried it on my own device, and it really works!
That sounds like an interesting trick - Thanks for sharing
Can you show us how to make a matchfinder online engine and a hosting servers for players engine?? I love your videos and I Will like to see more multiplayer tutorials ❤❤
Griffpatch has the best scratch tutorials ever
Griffpatch is that teacher who makes us really want a next lesson with him
The worst thing that can happen is following a griffpatch tutorial and suddenly you realised you did something wrong
can't wait to watch!
Griffpatch is the type to be a teacher and be nice to others and I can respect that Sir.
griffpatch you are such a great scratcher and i have watched all of your videos i dont have any more tutorials lol. I love all of your videos griffpatch
Griffpatch you make all the tutorials fun and easy. Sometimes i feel like a one hour tutorial is like a 1min tutorial.
If Griffpatch was our computer science teacher, we would all be happy
Thanks for doing all this for us. You have helped me build my own games and with your awesome score and text engine video you have my whole game. Thank you
Just for future people who might have the same issue I had...
If your cloud player is teleporting to the mouse and random positions, it's because your "encoded string" variable is supposed to be "for this sprite only" in the cloud player sprite.
TYSM!!
I guarantee you, Griffpatch is the kind of guy to make the most complex things, such as algebra, trigonomotry, any other programming language that isn't scratch, and turn them into the easiest things on earth
Griffpatch is the best coding teacher
Nice! CONGRATS ON 500K followers! You are the king of scratch!
I love this series!! So Cool ❤👍
I think you can detect when a user left the game by encoding the timer block. For example the timer block is quiet for 5 seconds just mark the user as left game.
Man your the best teacher couldent get the leving working but after a bit i realised im just dumb and forgot the data packet so i got it to work hofaly you will make more of theas GRATE vidios i know i will try to make my own in the futer to help more like you do :)
Will come for persevering and getting it working, that's great!
I love the hidden edits they are why Griffpatch makes learning fun 😊
Your the best scratch tutorial channel ever!
Finaly A Griffpatch Upload!
Thank you Griffpatch for your time and dedication to making quality Uploads Thank You !
I'm using this to learn the concepts for actual online multiplayer outside of scratch
Thank you griffpatch. These tutorials help me A LOT!
Thank you so much !!! I was waiting for this tutorial for a long time
I love the new dynamism of the music
Honestly griffpatch just helps me code so much fun things. I wouldnt be at my scratch status without him.
During these tutorials you've inspired me to get back on scratch! Thank you
Awesome!
griffpatch is so good.
HE EVEN TEACHES BETTER THAN THE SCRATCH TEAM.
can't wait for the next episode so i can make my game online for me and my friends to play!
Yay! It’s here! Episode 3!
Thank you so much for reading my comment that I made 2 weeks before and getting ready for my Monkey meyhem v:2.2 shooting game, I am so happy and I am waiting for the NEXT EPISODE!!
@griffpatch is the best scratch teacher ever, change my mind.
I just made a stop button detector. In my example, it says the id that left the game. The only time my method wouldn't work is if a player closes their browser.
this might be a little far fetched, but what if there theoretically were different instances of the game so as to reduce lag (unless I missed something cause i hadnt had time for scratch lately)
Les go new part!
Thank you SO MUCH for making this tutorial, i was trying to make a multiplayer game but the other videos won't work, so im glad you make a tutorial about this, Thanks very much and have a nice day!
WOAHHHH THANKS GRIFFPATCH YOU MADE MY SCRATCH GAME GOOD!!!
7:03 the napoleon meme "there is nothing we can do"
i remembered it only when he said it
I was waiting for this! I'm making a fighting game with ace attorney characters so thanks for the multiplayer tutorials!
I've always enjoyed Griffpatch's tutorials and playing his games on Scratch. And I have a suggestion on what you can make with this code: an online golf game. People can play against each other and it would be really fun.
MY THEORY ON HOW WE KNOW PEOPLE HAVE LEFT THE GAME: they stop changing the cloud variables lol
So yeah to make sure this works, we need to write the last time each player changed the cloud variables, and each player must modify clould variables even if they have nothing to change just to say "hi i'm online ! Don't delete me hoo !! "
You were even more thorough than I was by including the modify loud variable trick. I was going to do just that, but as it turns out, that is not quite as necessary in the MMO engine since each player overwrites each others cloud data all the time, so even an unchanged re-post of the same data will override someone else's cloud data often enough that we know the player is still there.
Updating the cloud variable to have an extra value to say that it’s changed would be necessary using the system where each player has their own cloud variable, though.
epic!
How did you chat 17 hours ago when it's released 4 minutes ago?
@@NikoCubeRoot yeah how
can you also add an AFK limit? so when they didn't leave, but aren't moving, they receive a screen saying they have been AFK for over set time.
for some reason it doesnt make the item empty so it wont recycle and the player doesnt hide it goes to the center of the screen
6:15 easter egg, nice one Griffpath.
I'm Planning on Making a Hermit Crab MMO Pixel Scrolling Platformer with Customizable Skins, Shells, and Accessories! :D
I was staring at the members only release so eager to watch the video (I'm poor). Glad to see it's out!
Awesome! Once you're done with the multiplayer series you should show us how to make a 3D paper-like game (Like cult of the lamb)
Im so exited for the next episode
It'll be here this weekend!!! (or right now for early access channel members!)
@@griffpatch cool!
I can feel my brain expanding as i listen to what griffpatch says 😂
how does this man not have 1 Million subs yet??
for checking if the player is offline, you use a variable that increments everytime which clears when a player outputs data, and when it's too long the player dissapears.
what if we made a new list for every player online, and when the player outputs data, we set the value of the variable before resetting it into the list? this will help for checking the ping of the user, like for example "40ms" or "130ms".
I think that might not work because of one reason. The players x and y on the screen and other such stuff could make the variable long enough to activate the automatic kick out.
@@tmstv5561 the automatic kick out is only when the player stops outputting values on the cloud variables (which will stop the ping from being calculated) but it will not happen when the x and y from a player doesn't change, as the player still outputs data saying that he's just not moving.
So cool! I'm SO excited to make my own multiplayer ONLINE game!!! 😃
to know when a player leaves you need to make a new variable called timer and add a when green flag clicked hat block then add a forever loop and set the variable timer to timer then add a when timer greater than the variable timer hat block and now you can detect when the stop sign is clicked
but that still doesn't detect if they just close the tab
Ah finally somebody who uses the stop clicked thing I made (I noticed I was the only one that did it and this is the exact same) did you use mine because that's the exact same one I use and nobody else does
@@orrinpants ???
This is all too complicated for me to wrap my head around, but I will happily copy it and see if I can make it work. Thanks!
Thank you, griffpatch!! 😀
hey griffpatch! amazing tutorial as always, but I have a question/issue with my project.
if I dont add any movement for the 'my player' sprite (everything the same just without the dancing scripts) then if I test it and leave them not moving, each screen shows the other players flashing. I'm assuming its something to do with the inactive 5 second thing but I'm not entirely sure why.
edit: I haven't changed anything but the issue has seemed to disappear.
it flickers at the center of the screen right? cuz im having that too.
not always the center, just wherever i last leave the players when testing
Griffpatch, I suggest a constant variable used for empty values:
In the stage, set ‘[empty value]’ (for all sprites) to letter 6 of Apple (or anything that you know is blank)
For safety, set the variable first, and then check by using the length of block, say ‘length of ‘[empty value]’, and make sure it’s zero
Btw I really love your videos, pls keep it up ❤