I noticed a problem in a small engine of mine.
I am using a object to draw some debug-informations on screen. Nothing fancy:
draw_set_font(fntDebug)
draw_set_color(c_black)
draw_set_alpha(1)
draw_text(view_xview[0],view_yview[0],"x: " + string(objPlayer.x) + ", y:" + string(objPlayer.y))
global.env_mod = 0
with (objPlayer)
{
global.env_mod = CheckEnvironmentSpeed()
}
draw_text(view_xview[0],view_yview[0]+16,"Env. Mod.: " + string(global.env_mod))
draw_text(view_xview[0],view_yview[0]+32,"h_slip: " + string(objPlayer.h_slip))
draw_text(view_xview[0],view_yview[0]+48,"v_slip: " + string(objPlayer.v_slip))
While this works perfectly fine as windows executable it just displays "x: undefined, y:undefined" in HTML5.
Here is a link to the running HTML5 version:
Broken coordinates
This did still work before the last two updates and I did not change anything magically on the Players x and y coordinates x_x











