ScratchData LogoScratchData
Back to RobFarley74's profile

3 distinct elements in a single list (a bit like an array but not really!)

RORobFarley74•Created December 6, 2021
3 distinct elements in a single list (a bit like an array but not really!)
0
0
28 views
View on Scratch

Instructions

Look inside to see what it's doing... Otherwise this is a REALLY boring project! This is an example of 3 linked elements being stored in a single list rather than 3, so if you had an object with an x, y and z instead of having x, y and z lists you just need one list and a couple of custom blocks to push and pull data to them... There's comments in the code of how to change it to whatever size you want, but I felt 3 was complex enough to show it's usage and simple enough not to confuse! I've created blocks to wrap what's going on "under the hood" and make it simple to use.

Project Details

Project ID612165107
CreatedDecember 6, 2021
Last ModifiedDecember 10, 2021
SharedDecember 6, 2021
Visibilityvisible
CommentsAllowed