Unlock the Power of Modular Scene Saving 💾 Scratch RPG Tutorial #10
griffpatch griffpatch
355K subscribers
122,605 views
0

 Published On Mar 18, 2023

In preparation for Scene Changes in our RPG worlds, we add modular scene saving and loading code. This makes use of the Data Serialisation Tutorial, along with Run Length Encoding to compress the GRID list into a single text value, and a data dictionary (key-value pair of list) to store the levels away for later. WHAT AN UNMISSABLE FEATURE PACKED EPISODE!

⭐ Want Early Access or the project files? Join the channel membership:
   / @griffpatch  

⭐ Want to support me on Patreon? Yes please!!   / griffpatch  

👀 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...  
Ep.11 - Multi-Scene Magic -    • Multi-Scene Magic in Scratch! | RPG T...  

🐱 Scratch Starter Projects with Assets - Remix this!
https://scratch.mit.edu/projects/7255...

🐱 Scratch Studio for Your projects
https://scratch.mit.edu/studios/32038...

-------------Video Chapters-------------
0:00 Intro
1:25 Backpack the Data Serialization Sprite
2:29 define Save Scene
3:16 Modular Save Code – Save Grid
4:12 Run Length Encoding the 2d GRID List
7:14 Storing the Save Code in the Scene Dictionary
9:44 What name to give our Scene?
10:28 Loading a Saved Scene
13:28 Decoding the Run Length Encoded GRID module
15:27 Testing the Scene Saving & Loading
16:33 Outro

show more

Share/Embed