No video

"Save My Game!" 💾 Data Serialization & Escaping in Scratch

  Рет қаралды 339,331

griffpatch

griffpatch

Күн бұрын

Learn how to safely convert (serialize) your variables into a basic save code in this Scratch coding tutorial. We'll learn about simple CSV's (comma separated value), and implement a robust character escaping system to avoid conflicts and guarantee what goes in, is what comes out! We'll create two custom blocks, "Write Value", and "Read Value".
This episode will be followed up by a second episode that will also be part of the RPG series, and we'll expand on save codes showing how to make them modular, and backwards compatible.
My tutorials are for all budding game & software developers using Code Blocks. Scratch On guys!
🚀 Boost Your Creativity with Griffpatch
The Griffpatch Academy will take you from "Gamer to Game Creator"
Learn more at 👉 griffpatch.aca... 👈
😺 Scratch was developed by the Lifelong Kindergarten Group at the MIT Media Lab. See scratch.mit.edu
👀 Quick and Fun Tutorials
• Quick and Fun Scratch ...
👀 Episodes in the series:
Ep.1 - Craft your dream Scratch Game - • RPG Tutorial | Craft y...
Ep.2 - Infinite Scrolling & Tiles - • 🐱 Infinite Scrolling &...
Ep.3 - I AM SPEED - • ⚠️ LAG FREE Scrolling ...
Ep.4 - Build a LEVEL EDITOR in Scratch - • Code a LEVEL EDITOR in...
Ep.5 - Split Screen & Multi Tile Assets - • EDIT FASTER ⚡ Tile Tra...
Ep.6 - Layers & Onion Skinning - • LAYERS 🧅 "Onion Skinni...
Ep.7 - Collisions Pins - • Collision Pins? 💥📌 Now...
Ep.8 - Player Collisions - • Player Collisions + Wa...
Ep.9 - Animate the World - • How to Animate Game Wo...
Ep.10a - Data Serialization - • "Save My Game!" 💾 Data...
Ep.10b - Modular Scene Saving - • Unlock the Power of Mo...
❤️ Scratch Addons - scratchaddons....
-------------Video Chapters-------------
0:00 Intro
1:10 Comma Separated Values & Delimiters - CSV & DSV
2:22 Basic Write Value Custom Block
3:55 Basic Read Value Custom Block
6:30 Index out of bounds error and Optimisations
8:16 Write with Escaping
11:20 Read with Escaping
12:28 One last issue!
13:51 Summary
15:49 Outro

Пікірлер: 1 400
@ChraphtMyne
@ChraphtMyne 10 ай бұрын
I hope this comment can get to you. I played your paper Minecraft when I had no money to buy the official Minecraft, which was from 2015(11 yo) to 2021(17 yo). It was a good portion of my childhood, which also got me interested in scratch(2017, 13yo), which later made me interested in programming languages(2018, 14 yo). Now I'm 20 yo, trying to make a game like Terraria on Unity game engine. I was stuck at world generation and and world saving, AND I RECALLED YOUR GAME. At first I thought I would have to break down your scratch game on my own. Then I saw your videos towards paper Minecraft. With this video and your Procedural World Generation video, you actually helped me a lot on my unity project. Education sessions with such advanced techniques you taught us in your videos are usually paid courses on the internet, but you just...what the heck man, you mean so much to me. You are the one who inspired me towards programming, and now you are helping me again, I don't know how to thank you.
@Millie_oo0
@Millie_oo0 5 ай бұрын
Thats really nice i have to say! Good luck on your programming journey’s future!
@Quest-vg3xn
@Quest-vg3xn 5 ай бұрын
i totally agree
@Montserratballaltaccount
@Montserratballaltaccount Ай бұрын
same
@minhhoangle-jn4kf
@minhhoangle-jn4kf Ай бұрын
just use perlin noise to make terrain
@CSS-MarioSonicGaming
@CSS-MarioSonicGaming 23 күн бұрын
i just hope griffpatch sees this
@gman8398
@gman8398 Жыл бұрын
I honestly think that the best part about griffpatches tutorials is the fact that he is so skilled at the language that every tutorial he makes the more advanced scratch games can be for everyone else, keep up the good work man!
@gymcu7019
@gymcu7019 Жыл бұрын
|
@NotDIY
@NotDIY Жыл бұрын
although im not new to scratch, griff is making me learn things I struggled with in the past, just in a simpler manner, Thanks Griff!
@oxintoma32dev
@oxintoma32dev Жыл бұрын
10:51 Fixed! we just forgot to add a "change variable (save idx) by 1" in the repeat loop. thats why it just adds only the first letter of each value in the save code also thank you so much,that helped alot! :D
@iheirhR8237
@iheirhR8237 Жыл бұрын
Isaiah Wakakai goat thus felling that I use a notary to claim don't go that gagger abby wasabi
@myithspa25
@myithspa25 Жыл бұрын
@@iheirhR8237what
@Beconchiklol
@Beconchiklol 2 ай бұрын
Btw i know how to code it so its hard to change cuz values will break
@Blockitjames
@Blockitjames Жыл бұрын
nice to see you are using methods from text programming languages such as escape characters into scratch! It also helps people know alot about text programming when they end up getting into it! Great work Griffpatch as always!
@griffpatch
@griffpatch Жыл бұрын
Yes, that was the plan
@Mr_green650
@Mr_green650 Жыл бұрын
@@griffpatch Maybe you can encrypt the code and decrypt the code to stop the player from cheating in the game
@vii-ka
@vii-ka Жыл бұрын
​@@Mr_green650 The problem with that is the player can see inside and encrypt any value they want.
@Mr_green650
@Mr_green650 Жыл бұрын
That’s true but if we make it really hard to read or edit than it should be possible
@vii-ka
@vii-ka Жыл бұрын
@@Mr_green650 so basically make spaghetti code so bad worse then Papyrus's spaghetti that it scares away the cheaters?
@N_jsd
@N_jsd Жыл бұрын
I’m glad you’re finally making a tutorial on how to do this so it’s more accessible! I did this a while back with your encoding and decoding system from the cloud tutorials, and have the game read the numbers to give you your values back. Though I didn’t use any delimiters so it could get a bit confusing with all of the values in my game.
@BobChess
@BobChess Жыл бұрын
Finally! We can do RPG in scratch!! I can't wait to see the new episode of it!!!
@pcc404
@pcc404 Жыл бұрын
me too!
@DUMB_PERSON_NEAR_ME
@DUMB_PERSON_NEAR_ME Жыл бұрын
I know how to do that
@HTS-wb4gg
@HTS-wb4gg Жыл бұрын
@@DUMB_PERSON_NEAR_ME 1 minute ago, I guess people uhh
@syesjohnny4119
@syesjohnny4119 Жыл бұрын
@@DUMB_PERSON_NEAR_ME yeah
@bobhim-mq4vt
@bobhim-mq4vt Жыл бұрын
YA!
@YessoN-YT
@YessoN-YT Жыл бұрын
Before this video I had made a fairly similar system on turbowarp (with the "files" extension) but with lots of lists and which didn't work sometimes... And here I see a video that can help me! Thank you griffpatch :)
@griffpatch
@griffpatch Жыл бұрын
No problem
@startFX
@startFX Жыл бұрын
YES FINALLY, I've been trying to make one for ages, especially for my custom scene editor for the firework particle project, and you there a tutoprial ! Thank you so much griffpatch !
@griffpatch
@griffpatch Жыл бұрын
My pleasure
@adamsophian2335
@adamsophian2335 Жыл бұрын
@Creeper Download tutorial as tutorial?
@matangoldstien5922
@matangoldstien5922 Жыл бұрын
This is actually pretty easy, thank you griffpatch!! I am currently catching up with your awesome raycaster, added to it a world generation thanks to your maze generation with some tweaks, this here will make a great addition!
@supranova1
@supranova1 Жыл бұрын
Been wondering how to do this for a while, amazing work as always. I was just thinking about data saving when I saw this video posted just 1 hour ago!
@griffpatch
@griffpatch Жыл бұрын
Good timing!
@iheirhR8237
@iheirhR8237 Жыл бұрын
@@griffpatch Isaiah Wakakai goat thus felling that I use a notary to claim don't go that gagger abby wasabi
@sirthatgames
@sirthatgames Жыл бұрын
I did raycasting and took a break. Now I’m back and I’m ready for more. Good work as always Griffpatch.
@theblazingspud
@theblazingspud Жыл бұрын
I needed exactly this to save people scores and levels in my new game! Thanks so much Griffpatch!
@griffpatch
@griffpatch Жыл бұрын
My pleasure
@Femtobot314
@Femtobot314 Жыл бұрын
HOw did griff reply
@kales901
@kales901 Жыл бұрын
@@Femtobot314 by pressing the "reply" button
@Picotech1
@Picotech1 Жыл бұрын
@@kales901 WoW
@tommax1626
@tommax1626 Жыл бұрын
This is really funny, i just thought about this exact matter in order to make my scratch game especially with encryption! Thank you Griffpatch!
@Its.a.me.wavey_
@Its.a.me.wavey_ Жыл бұрын
HOL UP THIS VIDEO WAS UPLOADED 14 MIN AGO AND YOU REPLIED 17 HOURS AGO
@Blockitjames
@Blockitjames Жыл бұрын
@@Its.a.me.wavey_ he has a membership so he got the video early
@arodandtamarazalioukamir3869
@arodandtamarazalioukamir3869 Жыл бұрын
HOW DOS IT SAY THAT U COMMANT 19 HOURS AGO AND THIS VIDEO IS ONLY 1 HOUR AGO?
@pndaMobby
@pndaMobby Жыл бұрын
​@@arodandtamarazalioukamir3869 membership gets videos early
@gamerseeker2697
@gamerseeker2697 Жыл бұрын
You can buy a Griffpatch membership, so you can get videos early!
@KidPrarchord95
@KidPrarchord95 Жыл бұрын
This sort of data management has always been what I'm best at programming! This video has given my new perspective on my approach, too, which is appreciated! Great video, as per usual.
@RandomStufff423
@RandomStufff423 Жыл бұрын
Honestly man how do you make every Scratch tutorial sound so easy? Keep up the awesome work.
@FeniteFr
@FeniteFr Жыл бұрын
I like how complex things became simple in your tutorials :)
@griffpatch
@griffpatch Жыл бұрын
I do try :D
@FeniteFr
@FeniteFr Жыл бұрын
@@griffpatch And you succed !!
@HurelyDev
@HurelyDev Жыл бұрын
@@griffpatch how would you save and load a list
@um_idkw
@um_idkw Жыл бұрын
He could explain how to make an entire computer (cpu, gpu, custom machine language , custom asm, compiled lang, input system, ect) in scratch and it would be simple.
@apbmatticus6121
@apbmatticus6121 Жыл бұрын
@@um_idkw so true!
@aringelblade
@aringelblade Жыл бұрын
Finally saving my progress I thought it wasn't possible but griffpatch did it congratulations :)
@crackerpooppop
@crackerpooppop Жыл бұрын
Yay! I love it when griffpatch uploads. He makes everything simple and enjoyable :)
@Kweable_Gaming
@Kweable_Gaming Жыл бұрын
So true
@AndyWandyBandy
@AndyWandyBandy Жыл бұрын
Yes! I've been experimenting with save codes, but I can't get them to 100% work each time. This will definitely help!
@griffpatch
@griffpatch Жыл бұрын
Great to hear!
@box..
@box.. Жыл бұрын
I have moved on to Unity but you’re content inspired me to take a step backwards and load up scratch! Great job with you’re videos btw!
@PabTSM-OfficialChannel
@PabTSM-OfficialChannel Жыл бұрын
griffpatch is content? wow didn’t know
@mikk.t.7824
@mikk.t.7824 7 ай бұрын
​@@PabTSM-OfficialChannelRude meanie
@PabTSM-OfficialChannel
@PabTSM-OfficialChannel 7 ай бұрын
i was being ironic, @@mikk.t.7824
@Phillip_Duck
@Phillip_Duck Жыл бұрын
This reminds me of string variables I learned about in computer class. Epic 😎 Also that contains block trick is amazing! I wonder what else it can be used for?
@kermitplaysminecraft1012
@kermitplaysminecraft1012 Жыл бұрын
I cannot tell you how much you make my life easier with what you make, whenever I try to code smt new I always see if you already have a tutorial on it or not, and you always do :D
@ego-lay_atman-bay
@ego-lay_atman-bay Жыл бұрын
It's not the way I create save codes, and text escaping, but it's simple and it works. The ways I do it is probably more complicated, as I loop through it using a repeat until letter > length of text.
@vii-ka
@vii-ka Жыл бұрын
A very tiny optimisation: The last letter in this text is always ‹|›. This marks the end of the last value. However, ‹› would also work, so you can remove ‹|›. If only there was an (all but last of [text]) block for this!
@ego-lay_atman-bay
@ego-lay_atman-bay Жыл бұрын
You check if the save code is "" before saving the value, and if it's not, add "|" to it, then add the value.
@donutguy804
@donutguy804 Жыл бұрын
my school blocked scratch because people kept playing games on it
@ChrisYay-oi3of
@ChrisYay-oi3of 8 ай бұрын
Luckily my school district teaches little kids scratch so I'm fine
@doggorgg
@doggorgg 8 ай бұрын
@@ChrisYay-oi3oflol same
@dersilberfisch
@dersilberfisch 8 ай бұрын
You can try translating the link into english and then clicking on the link it works but stuff gets laggy most times
@crovat5218
@crovat5218 8 ай бұрын
​@@foxneko4465pretty much, yes
@mattiskardell
@mattiskardell 7 ай бұрын
@@doggorggi made my school teaches scratch
@chesswizard7057
@chesswizard7057 Жыл бұрын
Oh man I think we have all been waiting for a cool tutorial like this! 🔥
@brendenistired
@brendenistired Жыл бұрын
Day 4 of asking for moving platforms in the tile scrolling platformer series. I don’t expect to see this or make a video on this but I love your channel so much! You deserve 1 mill!
@Ilikepotatoes067
@Ilikepotatoes067 Жыл бұрын
Another good upload by griffpatch; thank you for saving us!
@griffpatch
@griffpatch Жыл бұрын
No pun intended
@Gravitraxbro
@Gravitraxbro Жыл бұрын
Suggestion: If you put this in a game, the player could give a value like 999|999|999 and max out his/her character. Maybe you can make it so it is slightly harder to decode?
@two2fiv67
@two2fiv67 Жыл бұрын
If you multiply by any number when encoding and divide it by the same number when decoding, it will be much harder to decipher what values are what, alternatively you could turn letters into numbers and numbers into letters (a=1, b=2, etc. or shift every number by a value, 1=4, 2=5, etc.)
@Gravitraxbro
@Gravitraxbro Жыл бұрын
@@two2fiv67 I'm going to do both :)
@two2fiv67
@two2fiv67 Жыл бұрын
You could use a random number to multiply the values in the save by and put the random number in the save code, then when decoding use the random number, [Ideally first or last in the code] and divide by the number to make it harder.
@lime_is_crime6407
@lime_is_crime6407 Жыл бұрын
or make it a cloud username detection so that way he or she can't interact with the save code or system.
@FAUXCUSpd
@FAUXCUSpd Жыл бұрын
@@two2fiv67 this is a good idea
@ImNotOnGoodKushAndAlcohol
@ImNotOnGoodKushAndAlcohol Жыл бұрын
a way I found how to do this very easily is by not setting the values at the start of the game but before you publish it you have to set the values to what you want them to be set to when someone starts the game for the first time, this is because if you don't set the values at the start of the game, then the values will equal to the values the values were set when they were publish, then when someone stops the game and then starts it again then the values still stay the same because there isn't code at the start function resetting them.
@MarkerousMarker
@MarkerousMarker Жыл бұрын
When it was Friday I talked to my friend about him playing a scratch game, then I said ‘I really hope you can save games in scratch’ and 2 days later there it was,a video about saving games Thank you,griffpatch😊 (Try to hit 300k subs by the end of 2023)
@Tumanus
@Tumanus Жыл бұрын
When griffpatch uploads new video, we know that it will gonna be great!
@jorgenandersson1964
@jorgenandersson1964 Жыл бұрын
Agree! =D
@Kweable_Gaming
@Kweable_Gaming Жыл бұрын
So True
@speeed212
@speeed212 Жыл бұрын
You make my day with your uploads
@buttercupthegamer
@buttercupthegamer 6 ай бұрын
Without using any tutorials I created a save code system for a clicker game I made, and I'm gonna be honest, you did it better than me/
@yahya2853
@yahya2853 Жыл бұрын
Ever since 6 months ago, I switched to python and unity and you came back up on my for you. I remember watching every video of yours to help with my scratch games. Unfortuentely, I don't use Scratch anymore but you taught me alot and you are the reason why I upgraded cuz I thought I was too good for scratch, which I was thx to u😂. Although I may not watch ur videos anymore, I thank you
@obseletechannel
@obseletechannel Жыл бұрын
I love your videos!! I've been watching ever since your Scrolling Platformer tutorial you did back in 2018-19!!
@griffpatch
@griffpatch Жыл бұрын
Wow!!! So cool - thanks for watching!!!
@obseletechannel
@obseletechannel Жыл бұрын
@@griffpatch These are good and high in production value! I also love the sense of humor
@duckymations9065
@duckymations9065 Жыл бұрын
Fixed it! that's the type of mistake I make when I have been coding for hours on end. and when I can't fix it I have a mental breakdown only to come back the next day and realize my silly mistake.
@JuanGamer0202
@JuanGamer0202 Жыл бұрын
i knowed how you did that game save system, but i never tried to replicate because i thought it would be realy hard to do, watching you to optmize your code and do it as simple as possible while still working fine is just insane, and i love it
@OOJMi_
@OOJMi_ Жыл бұрын
This is the FIRST TIME since I starter following you that I’m 10+ hours late to one of your videos 😮 (It’s my birthday 🎉)
@griffpatch
@griffpatch Жыл бұрын
Happy birthday!
@SupaTNT_OG
@SupaTNT_OG Жыл бұрын
Fixed it! I also want to say thanks for uploading such awesome videos i had always wanted to know how to make good scratch games and then a friend told me about you and your channel, and I'm sure many others feel the same way. Keep up the great work and have an amazing day!
@Elitherich
@Elitherich Жыл бұрын
I love how the thumbnail is a Scratch cat with Cool guy sunglasses!
@tvcoder4life103
@tvcoder4life103 Жыл бұрын
Griffpatch, i love your editing in your videos. for example at 4:38 the game screen shifts away smoothly to the right, i love your tutorials they always help me!! Hope you have a good summer.
@loric9157
@loric9157 Жыл бұрын
ngl when I first saw this video I thought it wasn't griffpatch bc of the different thumbnail style. Can't wait for The new RPG Episode!😁
@ConSoot
@ConSoot Жыл бұрын
Amounts of notifications Griffpatch got: *ABSOLUTE INFINITY AND BEYOND*
@redly_roblox
@redly_roblox Ай бұрын
Hey, I found this video recommend at this page and it's really useful as I don't have to worry using cloud datas( as it can save globally) but this one is wonderful! FInally for ourselves.
@dollarcoin
@dollarcoin Жыл бұрын
was going to develop a scratch port of one of my favorite games and realized save codes were gonna be a large issue. turns out this video came out at a convenient time for me, and even better, actually explains it really well! now i just need to figure out how to encrypt and decrypt it
@Dash22212
@Dash22212 3 ай бұрын
did you finish it?
@Ukraine-0
@Ukraine-0 8 ай бұрын
I was making a tringle drawer, and I needed script to read list, which has x1,y1,x2,y2,x3,y3,color. THANK YOU!!!
@Laserdemon
@Laserdemon 8 ай бұрын
Thanks for teaching me the "save my game" code, I really appreciate it.
@FlooferLand
@FlooferLand Жыл бұрын
this video made me realize how much Griff's way of constructing sentences sounds like vsauce. Sentences like "So, are we done? Well. We could be" makes me straight up imagine the vsauce music playing in the background
@pessskychaos4874
@pessskychaos4874 Жыл бұрын
Holy moly! How on earth do you always manage to make videos on exactly what i was having problems with?!!?? I was wondering how i would save a list with all the tiles for a level. This is ultra-perfect!
@talismanthecoder
@talismanthecoder Жыл бұрын
Me Too!!!
@irradiated_gamer
@irradiated_gamer Ай бұрын
If you use the turbowarp zip extension you can make a file with the save code and load it from the users computer when they join they continue a game, thus creating saving without copy and pasting the code.
@qwerty_qwerty
@qwerty_qwerty Жыл бұрын
WOOO! A new griffpatch video :) Fixed it! Didn't actually need to pause the video lol. Now applaud me >:)
@rulomasplaygames5204
@rulomasplaygames5204 Жыл бұрын
This guy is god of scratch. He knows everything. He will be able to do 60 players fall guys in 2d. Edit: You should make tutorial how to make level editor and how to save it
@floppie8615
@floppie8615 Жыл бұрын
Fixed it! We just forgot to add a change variable (save idx) by 1 in the repeat loop. that's why it just adds only the first letter of each value in the save code.
@cannedrandomness
@cannedrandomness Жыл бұрын
Wow this is so good, I was making my "Toilet Simulator" game and I was also watching youtube on my tv and saw that you posted this just an hour ago, so I decided to take the tutorial... I was making this comment yesterday and I stopped because I was going somewhere.
@Wolfie0936
@Wolfie0936 6 ай бұрын
thank you so much! this was very helpful and now i can make a game i have been wanting to make for quite a while!
@OrtonLongGaming
@OrtonLongGaming Жыл бұрын
Dont think i didnt see that funny ad placement at 6:42 Got a laugh out of me lol
@BrAvOD-oo7pn
@BrAvOD-oo7pn 7 ай бұрын
bro griffpatch is the goat scratch just would not be the same without griffpatch and if there was no griffpatch there was no geomatry dash bro i am telling you this guy is a legend :) :) :D
@AbsoluteZRO
@AbsoluteZRO Жыл бұрын
Griffpatch i just wanted to say this is kinda creepy but also good at the same time. Not you or your game creepy but I was searching up how to make a save code or save games and couldn't find anything until I saw this. Literally the timing is weird. You could make any video and it was a video I needed. This was very helpful and thank you.
@certified_bot
@certified_bot Жыл бұрын
I tried to do cloud saving system in my Scratch game, but it didn't work. Now I can make saving system without using cloud variables! Love your content!
@varganyamuvek
@varganyamuvek Жыл бұрын
I just love how Griffpatch always has an upbeat mood in his videos :-)
@PeterbroMC
@PeterbroMC 10 ай бұрын
Bro's an human AI
@varganyamuvek
@varganyamuvek 10 ай бұрын
@@PeterbroMC xD
@justinsketchesNG626
@justinsketchesNG626 Жыл бұрын
FINALLY!!!! JESUS CHRIST IVE BEEN WAITING FOR THIS FOR 2 YEARS NOW
@justinsketchesNG626
@justinsketchesNG626 Жыл бұрын
You should do an RPG turn-base battle with stats plus exp! Like Earthbound
@ScratchHow-To_Coding
@ScratchHow-To_Coding Жыл бұрын
I've already made a way to make save codes, but I'm still watching this!
@-ItzAriana-
@-ItzAriana- Жыл бұрын
52 minutes ago! AHHH! Thank you for making this video, Griffpatch!
@WBR44
@WBR44 7 ай бұрын
fixed it! (kind of suprised but i noticed that pattern) Thanks for all the helpful tutorials!
@darkie001
@darkie001 Жыл бұрын
For some reason, hearing, "Bug squashed!" makes you feel super powerful.
@Willbin23
@Willbin23 Жыл бұрын
Omg it has done 3 years since I wanted to find a save code tutorial and btw I fixed it lol. Food job man!
@Willbin23
@Willbin23 Жыл бұрын
Good*
@DaWulffy
@DaWulffy Жыл бұрын
I remember that last year I did this for a game that pretended to be Google and I wanted all the pages created by the community to be saved. In the end I couldn't finish it because I didn't know how to do it very well.
@redmath991
@redmath991 Жыл бұрын
love your uploads, keep up the great work! gwiffyyyy!!!!
@MattAndPock-uk7tz
@MattAndPock-uk7tz 5 ай бұрын
this is actually how I learned to make save data for my games, or at least, this is how I do it now. Back when I made my Angry Birds Game, I added a savecode with no pipes and it took 3 days to put together. I had to use a list for stars and a list for mighty eagle percentages. It works but I think this one is cleaner And for those using turbowarp, I recommend the encode extension to go along with this Because who other than a hacker can decode Base64.
@Guchu1234
@Guchu1234 Жыл бұрын
I have a short theory. If you have a cloud variable, anytime anyone saves you could make a code of sorts out of numbers. The values are set by username. If we encode this, we can get the username of someone. Then we could match it up with data also saved in numbers. This could cause saving without having to ctrl c and then ctrl v.
@DJLENZ-CODER
@DJLENZ-CODER 6 ай бұрын
griffpatch famous keep on the good work just find a time to rest because most times when i watch your tutorials i see the amount of messages you have just make sure you find time for yourself and keep on the good work!!!!!!!!!!!!!!!!!!!!
@Komeiji0401
@Komeiji0401 Жыл бұрын
I like how this is not only useful in Scratch but for other game engines as well!
@duobleyeet
@duobleyeet 8 ай бұрын
This is a perfect tutorial for beginners to learn more about scratch. Griffpatch as always!
@Bit64ONE
@Bit64ONE Жыл бұрын
0:23 "Oddly familiar platformer game" I died
@MyysticYT
@MyysticYT 6 ай бұрын
Wow, this is incredible!
@weegie3343
@weegie3343 Жыл бұрын
thank you griffpatch! I already know how to do this (sort of) but i had to save variables separately to lists, and the lists where either uncompressed or slightly compressed, but still with at least 8,000 characters! This could save many gigabytes of storage for people who play my games!
@SsvbxxYT
@SsvbxxYT Жыл бұрын
Fixed it. Also, you can use a "Repeat until" block for the read value script.
@normalgamer5853
@normalgamer5853 Жыл бұрын
You can use the cloud var to hold your serialized data and if it get to big you can save it to another cloud var
@eddieandmaxie
@eddieandmaxie 7 ай бұрын
I made something to help save data differently! The way I made it needed scratch accounts to add into a list of users (if the user hasnt been added then we add it to the list) then with the data you want to save, you make a variable for it and a list, and then when you update and press green flag you set the variable to the item of item # of user. But before that happens, the variable has to be updated and has to be set to the item # of user in users. If it isnt there, we add the data to it’s own list, otherwise when we update it and it’s there, you replace it with the new data
@therealkyurem1
@therealkyurem1 Жыл бұрын
That was so funny, he brought up tension to click it again, and he clicked it, but I got an ad 😂lol
@pamelacromwell4646
@pamelacromwell4646 Жыл бұрын
Finally!! I always wanted to know how to do this!! Thanks so much griffpatch!!
@NickoDaLord
@NickoDaLord Жыл бұрын
Hay, Griffpatch, you are the only reason I'm allowed to use my account in school, thank you for everything you've taught me since 30th July, last year.
@griffpatch
@griffpatch Жыл бұрын
Awesome!
@talismanthecoder
@talismanthecoder Жыл бұрын
youve taught me since i was a kid
@artcas2
@artcas2 Жыл бұрын
Thank you ! 👍
@Crue-gaming
@Crue-gaming Жыл бұрын
2:09 don’t throw key boards out your window! Me: grabs keyboard…
@nithyavijai1548
@nithyavijai1548 Жыл бұрын
Lol
@nonexistence00
@nonexistence00 Жыл бұрын
ive heard of csv's before, but i didnt know that scratch can use them to save data amazing vid as always :)
@BigYoshi12
@BigYoshi12 Жыл бұрын
As soon as he said “what happens if we click it again at time 6:40, when he clicked I got a Reese’s puffs ad
@unyxium
@unyxium Жыл бұрын
The saving system I've settled on and standardised across all my projects is one that uses key-value pairs instead. I don't bother with escape characters because my data realistically will always have unused characters (and unicode is an alternative too). So, my saves end up looking like... key1:value1,key2:value2,key3:value3,. For loading I dump everything into a list first. Then to get a certain value, look for the key and the value will be the item immediately after it. I use the (item # of [] in list) block to keep it simple. This system is so flexible because the order of the key-value pairs do not matter. Backwards compatability is easy.
@iaroslav3249
@iaroslav3249 Жыл бұрын
Funny thing I was already doing something similar for my own project since there's no "Split" block in Scratch like there is in JavaScript. This video made this tactic more public. Cool!
@sakkamsamerkhan8102
@sakkamsamerkhan8102 Жыл бұрын
Nice I've been waiting for this Your the best scratcher
@nether_robot
@nether_robot 11 ай бұрын
10:50 Fixed it! (save idx does not change from 1, so every character is the first letter, so change save idx by 1 after each repeat)
@darealelohim
@darealelohim Жыл бұрын
I found out a way to save the codes into a list so that players don't have to remember them. A setback is that you can only save 200k values per list, but you could just add more lists.
@EE-ou4pc
@EE-ou4pc Жыл бұрын
You should add a copy/paste feature to the RPG! I can’t wait!
@nhathoangnguyen3198
@nhathoangnguyen3198 Жыл бұрын
you are not a human,you are a brilliant god
@BvSchagen
@BvSchagen Жыл бұрын
I've been thinking of how to save my raycaster for weeks, VERY HELPFULL.
@iamsupershane69420
@iamsupershane69420 8 ай бұрын
10:52 after the set save code to join [save code + c], you should have added the 'change save idx by 1' block
@lukacotar2573
@lukacotar2573 10 ай бұрын
Please make a way create a NPC that you can interact with!! Love your videos, you are amazing!!!!!
@FLA-j1w
@FLA-j1w Жыл бұрын
yay episode than comes out soon great work as always griffpatch
@ashleyjbassett
@ashleyjbassett 5 ай бұрын
Fixed it (with my son) without a change save idx it cant go to the next letter so its stuck on the first letter in the value. Griffpatch your my son's hero and I just signed him up to the Griffpatch academy and he's so excited. See you soon!
The Variable HACK 🔨 Not many Scratchers know... yet
10:33
griffpatch
Рет қаралды 602 М.
How I Did The SELF BENDING Spoon 😱🥄 #shorts
00:19
Wian
Рет қаралды 34 МЛН
小丑把天使丢游泳池里#short #angel #clown
00:15
Super Beauty team
Рет қаралды 30 МЛН
Get 10 Mega Boxes OR 60 Starr Drops!!
01:39
Brawl Stars
Рет қаралды 10 МЛН
I Spent 2,000 Hours Using Scratch
13:59
ggenije
Рет қаралды 538 М.
INFINITE SIZE HACK IN SCRATCH?!??!
3:56
Datty8
Рет қаралды 1,4 М.
6 Developers make a Scratch Game Without Communicating
15:00
Jackson Academy
Рет қаралды 178 М.
Making a Game with Java with No Experience
8:41
Goodgis
Рет қаралды 139 М.
I Used a Chinese Scratch Ripoff
8:38
Jackson Academy
Рет қаралды 491 М.
ChatGPT Makes a Scratch Game
10:30
PolyMars++
Рет қаралды 991 М.
Your Questions Answered 🏆 Scratch 100k Unboxing!
17:05
griffpatch
Рет қаралды 89 М.
I Spent 6 Years Making Games in Scratch
10:03
chipm0nk
Рет қаралды 321 М.
How I Did The SELF BENDING Spoon 😱🥄 #shorts
00:19
Wian
Рет қаралды 34 МЛН