ScratchData LogoScratchData
Back to grandpasp2's profile

Var change detection

GRgrandpasp2•Created September 20, 2024
Var change detection
8
4
57 views
View on Scratch

Instructions

Sometimes, you have some code that you only want excecute if any one of several variables changes. The conditional statement can get long if you are checking many vars. Here is an unusual method that can both shorten the conditional statement and reduce the number of "value.old" vars. See inside.

Description

Credit to ??? I learned this from another coder, a long time ago, and, have forgotten who. Credit to @papipupepappa for the source project (which saved me some typing) LOL

Project Details

Project ID1070739400
CreatedSeptember 20, 2024
Last ModifiedSeptember 23, 2024
SharedSeptember 20, 2024
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root