Also this:
this.x = 620
this.y = Random(5,145)
this.timer = new Timer("move()", 1/30)
You are creating a timer within the object, trying to point to a method of the object.
I haven't actually figured out how to make timers work on object methods, so that timer is actually looking for the global move() method, which there is none.
Yeah... It'd probably be best to have a single timer for movement and a single timer for drawing. Or a single timer for both.
True, I want to make this as friendly as possible though.
Customizing a for loop will require a few extra keywords.
You guys fine with this?
For x = (some num) to (some num) decreasing by (some num)
The extra keywords are optional.
Yours would look like:
For x = 5 to 1 decreasing by 1
Similarly, you could do:
For x = 5 to 1 decreasing by 2
Or:
For x = 1 to 10000 increasing by 100
And the normal statement would still work perfectly:
The reason I can't make it automatically check if it's decreasing is because someone could make this type of for loop:
At compile time, I can't determine the values of variables.