ScratchData LogoScratchData
Back to 30ceaton's profile

Chunk Data Test

3030ceaton•Created October 1, 2021
Chunk Data Test
0
0
6 views
View on Scratch

Instructions

------------------INSTRUCTIONS------------------Watch the chunks form over the mine/cave thingy. It goes a little slow on my end because the clone has to search through all (sometimes most (bug fix)) the possible items on the "CHUNK DATA X" and "CHUNK DATA Y" lists. DO NOT PUT ON TURBO MODE, IF YOU DO, THE COMPUTER WILL LAG SOOOOOOOOOOOOOOOOO MUCH SO PLEASE DO N-O-T NOT PUT ON TURBO MODE!!!! ------------------HOW IT WORKS------------------ in a clone that is NOT a stone block, GIANT "if then" block uses a complex kind of search filter using a "_pin" for this sprite only (It's a little hard to work with variables with clones because the clone thinks it changes the variable for all but it does it to only itself. (If it was the opposite, it would wreck both this and all tower defence games on scratch.)) to find items on the "CHUNK DATA X" and "CHUNK DATA Y" lists, then seeing if they are in a 2 by 2 radius from the clone by saying "if x position > item _pin of CHUNK DATA X -55 and y position < item _pin of CHUNK DATA Y +55 and x position > item _pin of CHUNK DATA X -55 and y position < item _pin of CHUNK DATA Y +55 then". (that is one big if then block! (If then blocks that big don't usually work right but this one does)). If so, then it will "switch costume to item _pin of CHUNK DATA C" and then adds all of its precious block data to all "CHUNK DATA LIST"s (I wish the clone ---> variables thing didn't happen with lists (tower defence games across scratch would still work.)). Then the clone waits to disappear and fade when the custom block (triggered by main sprite) waits 1 second.

Description

----------------------CREDITS------------------------ 1. Inspired by @griffpatch 's minecraft but all code by me. 2. Number tracker by @AmazingQ (I think, might have gotten URL wrong) that I made a few changes to. 3. I got the blocks from @legodavee123 -------------------------NOTES------------------------ 1. I used tiny spacings because I thought it would look good and it would PROVE that I did not do any "if touching" commands (I really didn't) 2. You can use this in your projects if you like, but if you do, then you MUST GIVE CREDIT!!!

Project Details

Project ID578121896
CreatedOctober 1, 2021
Last ModifiedOctober 4, 2021
SharedOctober 1, 2021
Visibilityvisible
CommentsAllowed