You can make an image object and attempt to access the step_x and step_y variables, and the code compiles without error. However, during runtime, an 'undefined var' error is given.
Numbered Steps to Reproduce Problem:
- In code, access the step_x or step_y vars of an image.
- Compile and run the code.
- Notice the 'undefined var' error during runtime.
Code Snippet (if applicable) to Reproduce Problem:
var/image/I = new
I.step_x = 5 //Undefined variable /var/step_x
Expected Results:
The code won't compile, or it will work during runtime the same as pixel_x and pixel_y.
Actual Results:
The code compiles, but doesn't run.
Does the problem occur:
Every time? Or how often? Always.
In other games? Yes.
In other user accounts? Yes.
On other computers? I haven't tested.
When does the problem NOT occur?
Always does.
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? I'm using 494.1135 and I haven't tested any other versions.
Workarounds:
Use pixel_x or pixel_y instead.
all variables natively defined under /atom apply to /image, and can compile just fine. Their actual usage, though, is non-existent.