This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-07-01 15:47:04

estorken
Scratcher
Registered: 2010-04-01
Posts: 41

several changes to variables and operators

i have several changes to the operators and variables.

i want it be so that you can use x=y in an equation so that it would return a binary answer. an example is set x to 20 * x=20. this would leave x alone if it is 20 and set it to 0 otherwise

a variable change is to make it like in java and BYOB where you can set a variable to a function or script. we could take the blocks from BYOB. they are 'the script' and 'run' blocks. the script is used to set a variable to a script, and run allows you to run whatever is stored in the variable.

another thing i would like is so that you subtract letters from a word. for example create a variable called word, set it to hi and then subtract h (or h(blank)) and have it now be set to i.

i also think it would be a good idea to make scratch case sensitive, or have some way to choose whether it is.

that's all i can think of for now

vote on it here http://suggest.scratch.mit.edu/forums/60449-suggestions/suggestions/1984429-operator-variable-changes


http://i56.tinypic.com/esqpma.gif

Offline

 

Board footer