ScratchData LogoScratchData
Back to gdxfor's profile

List block bug

GDgdxfor•Created April 10, 2023
List block bug
2
2
53 views
View on Scratch

Instructions

A small demo project which shows off a glitch with the list block ( https://en.scratch-wiki.info/wiki/()_(List_block)#Notes ). Having a list with just numbers (not strings) will always cause a space to appear between entries, even if all of the numbers are only 1-digit long. This does not work on TurboWarp ( https://scratch.mit.edu/users/GarboMuffin/#comments-209011235 ). Update: Turns out that this is somewhat intentional ( https://github.com/scratchfoundation/scratch-flash/blob/2e4a402ceb205a042887f54b26eebe1c2e6da6c0/src/primitives/ListPrims.as#L53-L64 ). The reason this doesn't happen on TurboWarp is because it changes all items in the list to a string before this check gets made.

Project Details

Project ID833051408
CreatedApril 10, 2023
Last ModifiedOctober 24, 2023
SharedApril 26, 2023
Visibilityvisible
CommentsAllowed