Discuss Scratch

AidyGamer60
Scratcher
100+ posts

How do you detect when a variable changes?

jaofoody1
Scratcher
66 posts

How do you detect when a variable changes?

Just do

setOriginaltovariablewaitHoweverlongyouwantsecsifOrigional=variablethensayVariable has not changed over the timeelsesayVariable has changed over the time

Last edited by jaofoody1 (March 6, 2021 18:21:39)

AksharPremnath
Scratcher
500+ posts

How do you detect when a variable changes?

after every instance of my variable changing add this code:
setvariable changed?tomyvariablechangevariable changed?by1

the script to detect if my variable has changed:
ifnotmyvariable=variablechanged?thencodesetvariable changed?tomyvariable

Last edited by AksharPremnath (March 6, 2021 18:26:32)

Pingas_Official
New Scratcher
5 posts

How do you detect when a variable changes?

this can be used in js
Pingas_Official
New Scratcher
5 posts

How do you detect when a variable changes?

this can be used in js
prach1234
Scratcher
88 posts

How do you detect when a variable changes?

Try Doing This Code
whenclickedsetlast valuetovariableifnotvariable=lastvaluethensetlast valuetovariable. . .

Last edited by prach1234 (July 15, 2024 12:31:27)

Powered by DjangoBB