Discuss Scratch

FPSpoods
Scratcher
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
Abstract-
Scratcher
1000+ posts

Variable Correlation HELP!

When you change your A variable, change B by negitive 1.
FPSpoods
Scratcher
74 posts

Variable Correlation HELP!

Abstract- wrote:

When you change your A variable, change B by negitive 1.
But what if I wanted B to change by -1 only when A has changed by 5?

Like A=1, B=5… A=4, B=5… A=5, B=4… A=10, B=3 etc.





Thanks in advance
- FPSpoods

Powered by DjangoBB