Discuss Scratch

Igor-Gaming
Scratcher
71 posts

Variable block being completely ignored in script

Project link
In the Math sprite there is a custom block called “func_+”. In this custom block there is a block that sets a variable called prev# to a value. Below that variable is another set variable block that changes the variable str3 by -1. Every time str3 goes down by one when the script is repeated, but prev# is completely ignored. This doesn't make sense because it is the first block in the loop. Every time it loops it should update to a new value. Str3 seems to always stay at -2 for some reason, even though I know that isn't the actual value it should get because if I clone the operator and click it then the operator shows a completely different value. Can anyone explain this? Is it a bug? TIA

Welcome to the Velvet Room
Igor-Gaming
Scratcher
71 posts

Variable block being completely ignored in script

Oh and I guess it is important to know how to use this. The script asks you for a string and you need to input an expression. Try doing 534+124

Last edited by Igor-Gaming (May 19, 2021 22:54:29)


Welcome to the Velvet Room

Powered by DjangoBB