Jump to content


Photo

After updates object coordinates r undefined


  • Please log in to reply
No replies to this topic

#1 BlaXun

BlaXun

    Slime Online Creator

  • GMC Member
  • 2631 posts
  • Version:GM:Studio

Posted 07 June 2012 - 10:51 PM

Hey there,

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
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users