Finding Variable in Previous Frame
in
Programming Questions
•
1 year ago
Hello all.
Just a quick question.
How do you find the value of a variable in the previous frame. Is there any command?
For example :
int a, b;
void setup() {
int a = 0;
}
void draw() {
a += 5;
b = (value of a in previous frame)
}
How would you find b?
If your just using mouse commands you can use pmouse() but how do you do this for created variables?
Just a quick question.
How do you find the value of a variable in the previous frame. Is there any command?
For example :
int a, b;
void setup() {
int a = 0;
}
void draw() {
a += 5;
b = (value of a in previous frame)
}
How would you find b?
If your just using mouse commands you can use pmouse() but how do you do this for created variables?
1