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 https://griffpatch.academy
Scratch was developed by the Lifelong Kindergarten Group at the MIT Media Lab. See http://scratch.mit.edu
Quick and Fun Tutorials
• Quick and Fun Scratch Tutorials
Episodes in the series:
Ep.1 Craft your dream Scratch Game • RPG Tutorial | Craft your dream Scrat...
Ep.2 Infinite Scrolling & Tiles • Infinite Scrolling & Tiles Scratc...
Ep.3 I AM SPEED • ⚠ LAG FREE Scrolling in Scratch RP...
Ep.4 Build a LEVEL EDITOR in Scratch • Code a LEVEL EDITOR in Scratch | RPG ...
Ep.5 Split Screen & Multi Tile Assets • EDIT FASTER ⚡ Tile Tracing | Scratch ...
Ep.6 Layers & Onion Skinning • LAYERS "Onion Skinning" in Scratch ...
Ep.7 Collisions Pins • Collision Pins? Now that's clever!...
Ep.8 Player Collisions • Player Collisions + Wacky hitboxes! ...
Ep.9 Animate the World • How to Animate Game Worlds in Scratch...
Ep.10a Data Serialization • "Save My Game!" Data Serialization ...
Ep.10b Modular Scene Saving • Unlock the Power of Modular Scene Sav...
❤ Scratch Addons https://scratchaddons.com/
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