Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Variable Correlation HELP!
- FPSpoods
-
74 posts
Variable Correlation HELP!
Ok, so I'm making a game.
This may sound stupid, and the solution may be crazy simple, but what I want to do, is make it so every time A increases, B decreases.
Ex. if A=1, B=5, if A=2 B=4
Something like that.
Thanks in advance,
- FPSpoods
This may sound stupid, and the solution may be crazy simple, but what I want to do, is make it so every time A increases, B decreases.
Ex. if A=1, B=5, if A=2 B=4
Something like that.
Thanks in advance,
- FPSpoods
- Abstract-
-
1000+ posts
Variable Correlation HELP!
When you change your A variable, change B by negitive 1.
- FPSpoods
-
74 posts
Variable Correlation HELP!
But what if I wanted B to change by -1 only when A has changed by 5? When you change your A variable, change B by negitive 1.
Like A=1, B=5… A=4, B=5… A=5, B=4… A=10, B=3 etc.
Thanks in advance
- FPSpoods
- Discussion Forums
- » Help with Scripts
-
» Variable Correlation HELP!