Discuss Scratch

MrCreeper_From_MC
Scratcher
58 posts

how to detect when a variable or timer stops changing


I lik cake it so yumy yum yum yum yum cake so yumy eat it all day yum yum yum
 
when green flag clicked
forever
like (cak v) (because v) its (yumy v) for (3) (years v)
if <not<[alt] = [ek43680]>> then
set [alt v] to [ek43680]
else
lik (cak)
end
end
Derpamations_Inc
Scratcher
14 posts

how to detect when a variable or timer stops changing

set [variable] to [1]

when green flag clicked
forever
set [last variable v] to [variable]
wait (1) secs
if <[(variable)] = [(last variable)]> then
... // if something happens put what you want here
end
end

Meow
MrCreeper_From_MC
Scratcher
58 posts

how to detect when a variable or timer stops changing

Number one wrote:

“Hello darkness my old friend, welcome to my home again, I welcome you in, with a welcome
grin, hello darkness my old friend, I've come to greet you once again” quote from, MrCreeper_From_MC

Number two wrote:

hello, hello, hello hello hello, I've come to see you. I've come to fright you, I've come to scare you, I will come again sometime, and spook and you spook you, I will come again tomorrow, and get you once again…

Number three(awsome) wrote:

We're no strangers to love You know the rules and so do I A full commitment's what I'm thinking of You wouldn't get this from any other guy just wanna tell you how I'm feeling Gotta make you understand Never gonna give you up Never gonna let you down Never gonna run around and desert you Never gonna make you cry Never gonna say goodbye Never gonna tell a lie and hurt you We've known each other for so long Your heart's been aching but you're too shy to say it Inside we both know what's been going on We know the game and we're gonna play it And if you ask me how I'm feeling Don't tell me you're too blind to see Never gonna give you up Never gonna let you down Never gonna run around and desert you Never gonna make you cry Never gonna say goodbye Never gonna tell a lie and hurt you Never gonna give you up Never gonna let you down Never gonna run around and desert you Never gonna make you cry Never gonna say goodbye Never gonna tell a lie and hurt you Never gonna give, never gonna give Give you up) We've known each other for so long Your heart's been aching but you're too shy to say it Inside we both know what's been going on We know the game and we're gonna play it I just wanna tell you how I'm feeling Gotta make you understand Never gonna give you up Never gonna let you down Never gonna run around and desert you Never gonna make you cry Never gonna say goodbye Never gonna tell a lie and hurt you Never gonna give you up Never gonna let you down Never gonna run around and desert you Never gonna make you cry Never gonna say goodbye Never gonna tell a lie and hurt you Never gonna give you up Never gonna let you down Never gonna run around and desert you Never gonna make you cry Never gonna say goodbye


I learned how to do this

Last edited by MrCreeper_From_MC (Nov. 4, 2021 20:49:57)


I lik cake it so yumy yum yum yum yum cake so yumy eat it all day yum yum yum
 
when green flag clicked
forever
like (cak v) (because v) its (yumy v) for (3) (years v)
if <not<[alt] = [ek43680]>> then
set [alt v] to [ek43680]
else
lik (cak)
end
end

Powered by DjangoBB