invertion block goes like this:
(( 1 <invert> 100 ))
if the input number is 1, the output number is 100
if the input number is 2, the output number is 99
and so on
(( 2 <invert> 100 ))
if the input number is 1, the output number is 101
if the input number is 2, the output number is 100
if the input number is 3, the output number is 99
and so on
Its hard to explane
Offline
This is possible. I'll teach you how.
There are going to be 3 variables: min of inversion, max of inversion, and input.
Let's pretend the variables are 1, 10, and 2. The answer would be 9, right?
To get 9, subtract the min from the input. 2-1=1.
Subtract the result from the max. 10-1=9. There's your answer. Now make it work in Scratch!
Offline
kayybee wrote:
This is possible. I'll teach you how.
There are going to be 3 variables: min of inversion, max of inversion, and input.
Let's pretend the variables are 1, 10, and 2. The answer would be 9, right?
To get 9, subtract the min from the input. 2-1=1.
Subtract the result from the max. 10-1=9. There's your answer. Now make it work in Scratch!
OMG that helped a lot. Thanks!
Offline