I Shattered Scratch's Cloud Player Limit 💥 Here's how I did it!

  Рет қаралды 225,298

griffpatch

griffpatch

Күн бұрын

I love to push the limits of Scratch Coding and today I show how I was able to build a 60 to 100 player Minecraft style MMO (Massive Multiplayer Online) game in Scratch 3 using super clever cloud variable tricks!
With the huge success of Paper Minecraft, there was been a huge desire in the Scratch Community for me to make the game online, and this game is one step towards that dream.
🐱 The Scratch Project
scratch.mit.edu/projects/8431...
▶️ Tutorial used in this video
Multiplayer Tutorial (10 players) - • Cloud Game Tutorial | ...
Tile Scrolling RPG - • RPG Tutorial | Craft y...
Tile Platformer - • Tile Scrolling Platfor...
Original Best Platformer Game - • Tile Scrolling Platfor...
▶️ 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:48 Cloud Game Basics
1:19 Tiled Platformer Engine
2:04 MMO Cloud Engine
5:00 Synchronizing a 50,000 tile game world
6:12 A predefined level with incremental updates
7:02 Multiplayer Building Conflicts
7:40 Player leaving the game
8:20 Natural Level Regeneration - Combatting Entropy
9:00 The Future
11:33 Outro
#scratch #griffpatch #mmo #cloudgaming #scratch3 #online #codingforbeginners #blockcoding #devlog #minecraft

Пікірлер: 1 000
@almighty_m3
@almighty_m3 Жыл бұрын
For your lighting problem, maybe you can calculate it individually for each player in the area around the screen? For example, whenever a torch is loaded x distance away from the screen, it's effect is calculated.
@charlessantos2797
@charlessantos2797 Жыл бұрын
I visited the project but yes he did fix the lightning problem
@zellenny1784
@zellenny1784 Жыл бұрын
Perhaps torches and suhc can have a white circle around them by standard, but with a multiplication effect applied to them, to give the illusion they're lighting up the surroundings, while they're actually just compensating for the black. Is this even possible in scratch?
@griffpatch
@griffpatch Жыл бұрын
@@zellenny1784 no, there no composition display filters like multiply, that would be awesome
@pixelatedluis
@pixelatedluis Жыл бұрын
@@griffpatch looks like we have a new update idea for scratch :)
@zeenxdownz
@zeenxdownz 10 ай бұрын
hi
@Minecwaft_
@Minecwaft_ Жыл бұрын
This is crazy, honestly it makes me wonder how scratch think of you.
@palmossi
@palmossi Жыл бұрын
@griffpatch can i please get a shoutout
@Sharp2006
@Sharp2006 Жыл бұрын
i’ve literally wondered too
@Adventure_Epic
@Adventure_Epic Жыл бұрын
@@palmossi comment of shame
@LuminosityZero
@LuminosityZero Жыл бұрын
1 day ago??
@palmossi
@palmossi Жыл бұрын
@@Adventure_Epic what
@funut2541
@funut2541 Жыл бұрын
Really interesting delta encoding. Almost a mini version of git. 😂 I think a cool idea could be a build battle game. Where players are given a prompt and try and build the closest things with the limitations. Would need a voting system though but that could just be another key in the players object. Could be a way to introduce competitiveness in a way that’s technically possible
@griffpatch
@griffpatch Жыл бұрын
That is an interesting idea :D - If only cloud wasn't so unreliable! (regarding git, yeah! It is a mine change control system, but where everyone is broadcasting / streaming their changes in a loop continually :) fun
@-CosmoCode
@-CosmoCode Жыл бұрын
@@griffpatch Griffpatch, sorry for asking too much in the chat, I treated it as an interview, I'm really sorry, I'm a big fan and I know that you only sometimes see my comments due to large amounts of messages. I'm very sorry for potentially distracting you, You're a busy person, I just won't ask you so much stuff. I'm very sorry if this was annoying or irritating to You 😥
@crafterboy27
@crafterboy27 Жыл бұрын
@@IAmAFailureYT he might be tired of youtube or something happened in his personal life
@ErikBod
@ErikBod Жыл бұрын
@@griffpatch after years of wondering thats how you made so many players in one game
@ShowierData9978
@ShowierData9978 Жыл бұрын
​@@griffpatch there are more reliable exts tho (like cloudlink)
@benjirodaboi8063
@benjirodaboi8063 Жыл бұрын
Hey Griffpatch, I can't really use Scratch anymore, mainly because my account got blocked, but I just wanted to say that your content is really cool, and that you've been a big inspiration for me in programming in general. Even if I can't use Scratch anymore, you still continue to surprise me with your programming skills every day, and hopefully some day, I can be as good as you, and hopefully even better(you know what I mean lol). Keep up the good work man
@DiscoGal.
@DiscoGal. Жыл бұрын
why did your account get removed?
@RosesWaffleHouseorder
@RosesWaffleHouseorder Жыл бұрын
What did you do?
@Venomousnack
@Venomousnack Жыл бұрын
Why were you banned, they usually don’t do that for no reason
@kolby125
@kolby125 Жыл бұрын
Wow, really? Sorry to hear that man. Scratch is like that a lot, trust me.
@star80doessdastuff
@star80doessdastuff Жыл бұрын
​@@kolby125 no they don't, I've only received 1 warn when I was a kid.
@David12_
@David12_ Жыл бұрын
This is amazing, griffpatch, don’t stop ever.
@brandongraham-rf7bx
@brandongraham-rf7bx Жыл бұрын
Please
@Big_Con
@Big_Con Жыл бұрын
This is insane, I’ve been obsessed with figuring out how to make mega multiplayer games and this just gave me so many ideas! Thanks!
@ThePlough
@ThePlough Жыл бұрын
You could possible use the days since 1/1/2000 if you multiply this number by 60*4 (1 = 15 minutes) and leave the fractional part, then there will be a segment of numbers [0; 1) which should ideally be synchronized for different time zones, then 0-night, 0.25 - morning, 0.5 - day, 0.75 - evening. I hopw this helps for day and night sequences!
@Benjitos2
@Benjitos2 Жыл бұрын
Maybe you can have a system where players can award each other points or items to encourage cooperation. This could be how the mob masks you suggested would be gained.
@IceGame644
@IceGame644 Жыл бұрын
Also, you could add a negative point system(so its more of a rep system) that removes players with a low reputation, that would mostly fix the griefing problem too and encourage being nice to each other😊
@ryanmapping7944
@ryanmapping7944 Жыл бұрын
NO MOBS? NO PVP? this is how you get a boring game...
@thegreenhoodieguy
@thegreenhoodieguy Жыл бұрын
I remember playing this and saw you, I tried following you but then you left. This has got to be the most insane cloud project ever.
@-_lIl_-
@-_lIl_- Жыл бұрын
the way you have created this is really clever, I would have never been able to think of something like this!
@colinmacc
@colinmacc Жыл бұрын
It's really remarkable how you've created this even with all the limitations in the cloud variables. Great video - a real eye-opener! I vaguely knew the theory of MMO, but have never tried to put one into practice. I might now :)
@cringeSpeedrunner
@cringeSpeedrunner Жыл бұрын
Ideas: You don’t have to do any of them, obviously :D: 1. More Animal Masks - In the beginning, the Pig Masks were a hit! I think it would add more variety to add different ones :) 2. Community Regions - These regions are unclaimable, such as the gold mine and the well. 3. A way to extend your land - Maybe players could pay, iron / gold / diamonds to expand their land 4. Trading - Maybe you could add a new type of chatting such as (TENDERGALAXY) 10 WOOD -> 4 IRON, and then I could enter to accept the offer and the game would auto trade Of course, these are just my personal opinion and you don’t have to do them :D
@gegybeans
@gegybeans Жыл бұрын
Wow, this is absolutely incredible, and such a great video! 💖 Couldn’t overstate how much you inspired me when learning Scratch & getting into programming. Such impressive work, as always! 😊 Having just worked on replacing the light propagation algorithm in Minecraft: Java Edition, that struggle sounds very familiar! 😄
@ModBros8434
@ModBros8434 Жыл бұрын
Finally, the secret has been revealed! This is a very impressive technical feat. It's so cool to see how far we've come since the character limit was employed. In the future, I think it would do a lot of people good if you took a bit of time to leave some helpful comments in your code. I think it would benefit the Scratch community greatly.
@TwilightChomperEnthusiast
@TwilightChomperEnthusiast Жыл бұрын
This is really awesome! I cannot believe how you can think of these! Your tutorials are what really made me admire the world of coding. Keep up the good work!
@apt_get
@apt_get Жыл бұрын
Wow, had no idea you had a KZbin channel. You really inspired a ton of us when the 2.0 era rolled around. So happy you're still going!
@Wungle_bungle123
@Wungle_bungle123 Жыл бұрын
I don’t understand how you’ve been able to do this. You are so talented and I hope you keep up the great work 👍
@FunnyAnimatorJimTV
@FunnyAnimatorJimTV Жыл бұрын
In Cloud Splatoon i (sort of) found a solution to the problem of new players joining after someone leaves. And it's kind of like what you've said about cloud map storing in the past. I made it so all cloud players are also storing their "static" tiles in the cloud, that is, all the tiles on their map currently. They store about 50 tiles per frame, cycling through the whole map, and these tiles will be immediately read by the New joining player to fill in the map that all other players see. The more players are online, the faster it loads in for new players. 50,000 would take way too long, but since your starting world is already preset, maybe you could only have them send the static tiles that are different from the preset world. Also, since splatoon has only 3 color possibilities for tiles, I was able to store 2 tile values in only 1 digit (using the numbers 1-9 since 3^2 = 9), so maybe you could do this combination system to save data in minecraft as well.
@NaraSherko
@NaraSherko Жыл бұрын
Wow I never thought I see you there
@Oxey405
@Oxey405 Жыл бұрын
Very impressive! I started my dev journey on Scratch (age 6) and multiplayer always seemed impossible to me because of the restrictions but I am glad to hear that some people managed to make this dream come true. I recall thinking of such a system (encoding data into a number) but never made because to me it seemed too complex. I am glad someone finally realized my dream ! Also I didn't know you could have multiple cloud variables.
@himynameishimynameis
@himynameishimynameis Жыл бұрын
This is very cool! I hope that you can get enough time to work towards your projects as they seem very interesting! Lots of Love from New Zealand!
@crackerpooppop
@crackerpooppop Жыл бұрын
I love it so much when Griffpatch uploads, i check every weekend to see if he has lol
@nehakhandelwal1074
@nehakhandelwal1074 Жыл бұрын
Same
@scratchharry
@scratchharry Жыл бұрын
Just wondering, what are your thoughts about people using code to change Scratch cloud variables outside of scratch? Also, do you have any plans to stop any “hackers” from doing these such as writing text in bedrock, drawing things, etc.?
@griffpatch
@griffpatch Жыл бұрын
My thoughts are that I wish the scratch team would lock things down to prevent cloud hacking. The benefits of external cloud modification are not enough to outweigh the detrimental effects in my opinion
@medieval_fort_chat
@medieval_fort_chat Жыл бұрын
bruh its been so looooonnngg since i wachted ur vids LOVEEE the intro my guys breaking scratch again keep it up griff ;)
@Creative_YT
@Creative_YT Жыл бұрын
If this is what he can do in scratch, imagine what this man could do outside of scratch.
@gitgudneedsausername
@gitgudneedsausername Жыл бұрын
he is a skilled JS coder
@thecreator3758
@thecreator3758 Жыл бұрын
For saving the whole level, you could just run scratchattach on a server and store the level in a file. This level could then be sent to new players in reserved variables. I actually did this once and it works surprisingly well.
@DiamondLabs3
@DiamondLabs3 Жыл бұрын
I’m working on the same thing also using severs for security and to increase the max player limit
@LeeTwentyThree
@LeeTwentyThree Жыл бұрын
I just realized... you are the man who inspired me to learn programming, so many years ago. First with scratch, but I've come so far since. Now I'm managing huge projects and on track to build a career on it. Thank you.
@yoshihome2682
@yoshihome2682 Жыл бұрын
This is very cool! How you just push the limits of scratch! Good job =)
@stefanandrejevic2570
@stefanandrejevic2570 Жыл бұрын
My solution to the griefing would be to give everyone one sign block that when placed, only you can build within a certain radius of the sign. Not sure what the radius would be though...
@WindowsDrawer
@WindowsDrawer Жыл бұрын
I think in scratcharia he did that. Correct me if i'm wrong
@stevenpochatko945
@stevenpochatko945 Жыл бұрын
That could also be used to grief though. Someone could log on with a lol of accounts and fill huge areas with signs so no one could build. Even if there aren’t grinders, the entire surface would be completely filled up all the time.
@stefanandrejevic2570
@stefanandrejevic2570 Жыл бұрын
@@stevenpochatko945 the moment you leave all of your builds including the sign get removed, so you'd have to keep all those accounts online at the same time which would lag your computer. And also, I'm pretty sure you get kicked for being afk too long like in every multiplayer griffpatch game
@stevenpochatko945
@stevenpochatko945 Жыл бұрын
@@stefanandrejevic2570 that’s fair, but I doubt you lag your computer with like 20 chrome tabs open. Still seems as though the surface would be taken up by people rather quickly, but ig it could be a viable option.
@Geomasterinagame
@Geomasterinagame Жыл бұрын
Unfortunately this has almost ruined the game
@Richard_Nixon-mr6rq
@Richard_Nixon-mr6rq Жыл бұрын
How do you test online? I.e. at 7:20 you have other people all around, and a second account ( I’m assuming ) your also controlling
@griffpatch
@griffpatch Жыл бұрын
We can even test with the same account now if you do some tricks to identify which player is which
@Richard_Nixon-mr6rq
@Richard_Nixon-mr6rq Жыл бұрын
@@griffpatch like are you talking about using usernames in the data packet or something else?
@griffpatch
@griffpatch Жыл бұрын
@@Richard_Nixon-mr6rq yep. I now use both the username and a time joined as a unique identifier. This allows for the same user to join twice in different browser windows
@Richard_Nixon-mr6rq
@Richard_Nixon-mr6rq Жыл бұрын
@@griffpatch woah!
@Legendary-Coding
@Legendary-Coding Жыл бұрын
wow. wow. Griffpatch, it's been like a year since i've used Scratch, and you've been still creating remarkable stuff! You're like the Albert Enstin of Scratch. Nice!!!
@debilitykheops
@debilitykheops Жыл бұрын
Realy cool! I love how you push the limits of Scratch!
@frozengaming398
@frozengaming398 Жыл бұрын
make a friends system where it can detect if a certain “friend”(other user) is online
@splatplays
@splatplays Жыл бұрын
Good idea
@giovannielias8153
@giovannielias8153 Жыл бұрын
*Amazing game!* Now I see why you where not posting videos. This entire time you were working in the *Scratch Minecraft game* , but more cool and with more people! *Amazing work, keep it up!*
@bradyn4065
@bradyn4065 Жыл бұрын
I love these videos SO much. Also for the chest system you could create a non cloud for creating an item code then plug that in to a cloud variable then use a list to decode it like a save code to keep the items in based on the item code
@eboatwright_
@eboatwright_ Жыл бұрын
This is crazy cool! Scratcharia Multiplayer was my favorite game as a kid
@SllverSpace
@SllverSpace Жыл бұрын
I code in raw js and i've been trying to figure out how to code a mmo without consuming too much bandwidth since i'm using replit, this is really cool and seems like the whole sending packets by just syncing variables is really cool for scratch, but well the server still has to send all the variable updates so I still have to look around some more, but the whole storing your changes and then deleting them after you leave is so smart! Thanks for this as it will help me make my own projects and it's super cool to see you do stuff that should not be possible in scratch Also for your mobs, you could pass on mobs from player to player so they can be maintained as long as a few people are online, and for chests, try making ur encoder and decoder go with the item ids, so then each item in the chest is 1 digit long, then using that it should be possible to have one chest per player. So you would need to put a limit on the chests placed per player. (I'm assuming that each item has a id in a list or something, and that ur using the encoder and decoder from your cloud multiplayer tutorial series) Also with ur encoder and decoder, maybe you could change the numbers to actuall numbers, this could be done by adding a seperator letter like |, then you could save so much space and you could make the game so much less laggy.
@shraddhamanish6107
@shraddhamanish6107 Жыл бұрын
Well done I was waiting for this
@joshzenic
@joshzenic Жыл бұрын
THIS LOOKS SOOO AWSOME I LOVE IT! keep up the good work! *first time join*
@CoolGalaxyGamer1
@CoolGalaxyGamer1 Жыл бұрын
Thanks so much, Griffpatch! This has been really useful for a base on how to make cloud projects. Maybe I'll make a multiplayer survival game!
@xRoxxanne
@xRoxxanne Жыл бұрын
Hi, Griff! Great video, this definitely helped me a lot. I finally understood how after thinking hard about it! I've been watching your videos ever since! Also, could you please make a tutorial for the gameplay? Just like the multiplayer platformer. Thanks:DD
@Wolfdragon24969
@Wolfdragon24969 Жыл бұрын
woww griffpatch! this is incedible!! your content is just the best!!!!! I've done almost all of your tutorials!!! just now I'm make your mario platformer!!!!!!!
@MagiCarson08
@MagiCarson08 Жыл бұрын
Incredible. I have looked up to you ever since I joined Scratch, you never disappoint!
@griffpatch
@griffpatch Жыл бұрын
Thanks :D
@LoneLax
@LoneLax Жыл бұрын
I love your tutorials, and I would LOVE to see you make a merge game tutorial
@hw2007
@hw2007 Жыл бұрын
Wow that is really impressive, makes me want to attempt something like this! You are really driving forward scratch cloud variable tech
@onyxtautuhi3473
@onyxtautuhi3473 Жыл бұрын
Honestly, this must have been really complicated to make because of the limitations of what Scratch provides. Yet, somehow your clever tricks and ideas always seem to blow my mind. Breaking the limitations of Scratch is just Genius!
@GooseOnoob
@GooseOnoob Жыл бұрын
This is insane! It's honestly incredible what you can do with Scratch
@axmoylotl
@axmoylotl Жыл бұрын
I remember like 8 years ago I was amazed by your scratch games, I think I even talked to you a bit, completely different username though. Nostalgic to see your name again, I'm still amazed about how you make these within scratch
@Slashscreen
@Slashscreen Жыл бұрын
your tests and games used to fascinate me when i was just learning to program back in 2013/14, particularly that platformer engine you made with the scratch cat that had 16 frames io animation. Here I am a decade later making my own stuff, and youtube brings me right back to where it all began...
@leopardroar12
@leopardroar12 10 ай бұрын
This is just amazing! I played the game in scratch too! I had more 15 diamonds but suddenly the game refreshed and everything I had just vanished! This is a bug I guess cuz of the massive multiplayer and even in the comments section many people is talking about it. Please fix this bug. Let's not talk about the bug but you know something? Your Amazing, Outstanding and Unbelievable! You're the best scratcher in scratch!
@vedsorbit9686
@vedsorbit9686 Жыл бұрын
love your vids I have been in the inner circle been waiting for a vid thank you soooooooo much
@griffpatch
@griffpatch Жыл бұрын
Sorry for the delay - It's been a busy month for me! - Here's the project on my tutor account at present: scratch.mit.edu/projects/831603644/
@xXJacobXx123
@xXJacobXx123 Жыл бұрын
Really this is amazing! Keep up the good job.
@gauravs9875
@gauravs9875 Жыл бұрын
Very Impressive Griffpatch!!. I have an idea if you like the idea of people having private multiplayer worlds [for this to work u will need a list called worlds which checks if the block updates are for its world ] what they can do is invite certain scratch accounts and the scratch accounts {assuming if in same experience} will get a special teleport request which when pressed makes them leave from the central map and loads the host players new world which can be saved and loaded . plus the host can be in charge of computing all the background block updates and mob updates
@palmossi
@palmossi Жыл бұрын
Hi I love you griffpatch and I’m subscribed. some videos I don’t understand but still watch because they’re all so funny like this one!
@arozoid
@arozoid Жыл бұрын
Hoorah - we finally got an MMO tutorial! Even though I've left Scratch for a while, I'm really excited for what people do next :)
@jlcaesar8172
@jlcaesar8172 11 ай бұрын
I found you on the server... Anyway, your tutorials, even the oldest, is surprisingly awesome. It made me interested on Scratch coding, and let me make the first platformer game.
@diegoseoane9342
@diegoseoane9342 Жыл бұрын
Nice video! I love all your content and scratch games!! Continue like that!
@diegoseoane9342
@diegoseoane9342 Жыл бұрын
Also: I want to be a mob!
@griffpatch
@griffpatch Жыл бұрын
Reply me too!!!
@donotforgetmycode
@donotforgetmycode Жыл бұрын
@@griffpatch Me too!
@FunnyAnimatorJimTV
@FunnyAnimatorJimTV Жыл бұрын
@@griffpatch me too (wolf)
@AlitteralEgg
@AlitteralEgg Жыл бұрын
​@@griffpatch me too!!!
@mrrfyW_
@mrrfyW_ Жыл бұрын
It’s very impressive how you deal with Cloud variables, encoding and decoding them efficiently throughout everyone!
@sirpootsman1048
@sirpootsman1048 Жыл бұрын
Very fun! I spent my time in-game by building a giant tower on the far side of the map, then wondered off all the way to the other side and back, and looked at what changed while i was gone!
@firesoul2759
@firesoul2759 Жыл бұрын
I'VE BEEN SO EXCITED FOR THIS TUTORIAL!🥳🥳🥳🥳🥳🥳
@bigbricks1003
@bigbricks1003 Жыл бұрын
THIS IS SO COOL WE NEED A TUTORIAL!!! :D Great Work!
@ruff1e
@ruff1e Жыл бұрын
Dude is still making videos and games, amazing! I used to watch griffpatch’s tutorials and play his games when i was in 4th - 6th grade.
@pnplee
@pnplee Жыл бұрын
You're games are always the best!❤🎉
@Grogugamer20-hk2hc
@Grogugamer20-hk2hc Жыл бұрын
Griffpatch man it be so fun to talk and theorize about scratch multiplayer. your ways of doing multiplayer where ones i had thought of about 3 or so months ago or smt like that and i started on a multiplayer engine that others could just implement to any of there games and do some simple connecting to get it to work but any way. Ive been wanting to get deeper into scratch multiplayer but i have had no one to rlly brain storm or theorize with. And honestly some of the questions you where talking about such as falling sand, chest and such sound like interesting problems to solve.
@LukeJ270
@LukeJ270 Жыл бұрын
Nice job man, This is awesome!
@averagecodegame
@averagecodegame Жыл бұрын
Thank you so much for an MMO tutorial finally! I can finally make my 3D flight simulator online!
@viviansusername
@viviansusername Жыл бұрын
Honestly forgot about scratch. I've been working in C for a while trying to go back to fundamentals.. I wonder what I could do in scratch today. Subbed, you earned it with your commitment to pushing the platform's limits. Perhaps teams could be implemented using the same code you use to revert a player's changes on leaving? Somehow a player claims a small region (specifics aren't too important), and has ownership of those tiles until they leave. They could keep a list of trusted players, and overwrite any changes by untrusted players. Doesn't seem like that would be *too* difficult to implement, compared to the other things here.
@JackyBorderCollie
@JackyBorderCollie Жыл бұрын
Woah, this is really cool! I'm sure servers for Paper Minecraft can be made with this! I'll try making a Paper Minecraft Hypixel server.
@gabrielzamora3727
@gabrielzamora3727 Жыл бұрын
8:20 made me laugh so hard! I would never expect Griffpatch to do something like this which only makes it funnier. XD
@griffpatch
@griffpatch Жыл бұрын
He he thank you
@ItzPeechYT
@ItzPeechYT Жыл бұрын
great project griffpatch! For the anti-greifing thing, maybe you could add claiming land, but you use a pinboard to place it and other players can request acess to the land on pinboards? idk
@papternoodles1669
@papternoodles1669 Жыл бұрын
Your tutorials have helped me in scratch but now I am moving up to lua code so thank you for my help in my coding journey
@lspectroniztar
@lspectroniztar Жыл бұрын
I would have commented 4 hours ago but I was on the TV. I was recently looking for this! Thx
@thoriqabdurrahman9133
@thoriqabdurrahman9133 Жыл бұрын
So Cool. Thank's this help's me so much!!!
@Grumpy_Cat4588
@Grumpy_Cat4588 Жыл бұрын
hey griffpatch, i really love your content, and i say keep working, and i love how u figured out how to make many ppl play at once, but i think something really cool would be to have like a death run, or a parkour on the game. players could jump over the blocks, and u could addd in poison blocks that if u touch it, u die. i really love your content, though, and as u say, "SCRATCH ON!"
@zarfik
@zarfik Жыл бұрын
This is a very interesting topic with multiplayer! I do not really understand multiplayer, but perhaps to avoid players who destroy buildings need to add a privat. You can make in the block code (in coded form) the numbers either 0 or the order number of the player (0 is a block without a privat, and if there is a player number, then under the privat the player). Most likely you will also have to make some kind of tool that will allow you to create a privat. I don't know for sure if this will work, but it's just my idea of protecting player buildings.
@ThunderCraftYT
@ThunderCraftYT Жыл бұрын
Sick! This is awesome! I have a question about a different video, did you ever make a part 4 for the text engine, I followed the first 3 but I didn’t see the 4th. Thanks! Love the videos!
@wookiebear514
@wookiebear514 Жыл бұрын
This is crazy cool! Videos like these inspire me to be a better programmer For the claiming issue. Perhaps since changes are tracked already for name and position, have a block that "changes" blocks in a area around it to have the user id and a specific claim id thatd only let that user use that specific space?
@user-jj9bn3mf5v
@user-jj9bn3mf5v Жыл бұрын
Thank you Griffpatch your tutorials help me a lot.
@reddraddev
@reddraddev Жыл бұрын
i rarely use scratch anymore but this is p neat and for the problem with griefing, maybe you could add a toggle for players to allow either nobody to edit what they've done, allow a select few users, or allow everybody. maybe just a button in a corner that changes a digit in your data packet to 0, 1, or 2, and that number indicates your limitations on other-player editing. as for allowing some people, you could add their encoded usernames after the original number this is just an idea tho and might not work well in practice. regardless, i hope this project goes well
@siyustuff213
@siyustuff213 Жыл бұрын
i find it amazing how you essentially managed to make a changing world consistent across multiple players without having a host server. unreal
@scratch-ifivafan
@scratch-ifivafan Жыл бұрын
I don't actually know how it works, but for saving changes for new players you could send users changes to other players and to scrattatach, and when a new player joins the game tiles would load directly from it(of course it would take some time). By the way, great project
@mrmaymanalt
@mrmaymanalt Жыл бұрын
Hey griffpatch! I really liked this video. I'm wondering if you can just send the current time of day value over the cloud, constantly updating with some sort of sync system, and all the block lighting is handled client side. Since all the players have the same lighting algorithm, they should have the same lighting.
@legendgames128
@legendgames128 Жыл бұрын
Sweet work thus far!
@galsmith2098
@galsmith2098 Жыл бұрын
That was awesome!
@xAymxneYT
@xAymxneYT Жыл бұрын
That is amazing griffpatch I love you tutorials
@jeffdadaggoYT
@jeffdadaggoYT 2 ай бұрын
and for the lights you can make it light up based on when a player joins, a player that plays with you while you place the torch will be able to get the full light up at the same time but a new player at first not have to torch light lit up like it has just been placed, then it will eventually fully light up, hope that helps :)
@vii-ka
@vii-ka Жыл бұрын
I like that you can place items down just like blocks! It reminds me of the Minecraft April Fools update 22w13oneBlockAtATime
@M5J72XrtvEa24XteAIdNGA
@M5J72XrtvEa24XteAIdNGA Жыл бұрын
For building with others and still prevent people from griefing, you can make it so you can only destroy a certain amount of other players' blocks within a certain amount of time, or make it so you can't destroy other people's blocks at all, but add a chat function to ask someone to delete a certain block
@Qubimium
@Qubimium Жыл бұрын
I haven't used scratch in around 3 years. Now I see how much it has evolved.
@MastercaptainOfficial
@MastercaptainOfficial Жыл бұрын
I have actually thought of using lists for multiplayer in my turbowarp game for a very long time , but I thought it wasn't possible (besides, there isn't no limit to how many cloud variables I can make in my game because I'm using Turbowarp). Thanks Griffpatch!
@azeruezeru8764
@azeruezeru8764 Жыл бұрын
For land claim protection, you add a setting that toggles the list overwriting. Like if a player does not want their blocks to be broken, you could protect their change list and prevent it from being overwritten. Then limit the number of claimed-blocks they could place.
@dylanherrera5395
@dylanherrera5395 Жыл бұрын
yes, but people can still grief by burying everything in dirt, and plus, griffpatch still wants people to cooperate to build stuff
@piklif5278
@piklif5278 Жыл бұрын
i have benn waiting far a video for a while thank you
@joescraft123
@joescraft123 Жыл бұрын
This is really cool and it would also be cool if you could make a tutorial on how to add enemies to a RPG
@chaphidoesstuff
@chaphidoesstuff Жыл бұрын
Great vid man
@gneu1527
@gneu1527 Жыл бұрын
It's so cool how many tricks in coding there is in Scratch.
@jsutaGDplayer
@jsutaGDplayer Жыл бұрын
this project is amazing. i play mincraft a lot and it is realy like it. one thing i notaced is that stone normally spawns 5 blocks below dirt in miecraft but in your game is a bit diffrent and is depper. anyway love the game
@FriendlyNeighborhoodPrgrammer
@FriendlyNeighborhoodPrgrammer Жыл бұрын
I have a couple solutions to some of the issues you mention at the end Griffpatch, and they all revolve around client side calculations. So lets say someone removes a block, once the user on the other end receives that packet of data, we check whether or not the block above it is sand, if so, move if down on our screen and set the adjustment to be the player name of the data packet. Lighting would also be the same, with when any change happening just recalculate the lighting but only within a certain radius around the change to cut down on cost of CPU power. For day/night cycle you might be able to dedicate 1 variable to non-player data, like time of day, or any news you want stored. If you want to take things really far you could do something similar to what i did with an operating system of mine where i wanted all of the users data to be stored on the cloud. And that is to have a spare computer (does not have to be too powerful) which runs all of the calculations and AI and all of the other things. You most likely wont see this but i just wanted to throw this out here. PS: I'm a big fan, I've been watching since EP. 4 of your original cloud tutorial! :)
@user-tl9ci5jl5g
@user-tl9ci5jl5g Жыл бұрын
i have an idea for pvp: when players are mining or building you go into "change mode(or something like that)" which is where your changes are sent with more priority than your movement if you start running around or start using your weapon/s then your movements are sent and received by players with much more priority than your changes (i might have this completely wrong as i have only done a few cloud projects)
@fishylabsstudios
@fishylabsstudios Жыл бұрын
you should remake your online tutorial, i want to make a online game but i dont know how, and when i followed your tutorial from 3 years ago, but i didnt make it through episode 4 itll be nice to have a update, you have grown since 3 years
@saugatmainali8567
@saugatmainali8567 Жыл бұрын
I love watching your videos and I love coding and my idea is that you could probably make it so that there are different servers so that everyone is not on the same server and so it does not get lag. I also think that you could make it so people could make their own servers so that their friends can play with them. Hopefully you see this and I hope that you can add it to the game!
@dusk-amethyst
@dusk-amethyst Жыл бұрын
I was thinking of making my own server by remixing the project.
@saugatmainali8567
@saugatmainali8567 Жыл бұрын
@Jayayaay
@Jayayaay Жыл бұрын
If it wasnt for this man, I wouldnt have learned coding. Thanks a lot Griffpatch!!
How to Code Terrain Generation in Scratch
38:50
FindingPepper
Рет қаралды 32 М.
How To Make The PERFECT Clicker Game | Scratch Tutorial (Part 1)
3:23
So I got access to Minecraft: China Edition...
15:44
Fundy
Рет қаралды 138 М.
Fastest Appel Speedruns | Jan 2021
5:05
griffpatch
Рет қаралды 313 М.
Can AI Code Minecraft? Watch ChatGPT Try
8:06
BadGameDev
Рет қаралды 1,1 МЛН
I Made a Scratch Game Inside a Scratch Game
6:29
Tek Coder
Рет қаралды 3,5 М.
The Most Incredible Scratch Games!
6:08
Donutask
Рет қаралды 27 М.
I Tried the Worst Version of Scratch
8:16
PolyMars++
Рет қаралды 703 М.
Make your project UNREMIXABLE !
10:51
SL Smart Mind
Рет қаралды 185 М.