Jump to content


Photo

x=other.x don't work anymore


  • Please log in to reply
4 replies to this topic

#1 tomboman

tomboman

    GMC Member

  • GMC Member
  • 3 posts
  • Version:GM8

Posted 10 June 2012 - 06:18 PM

I use GM:Studio but I have a problem with HTML5 but not with Windows.

The wrong thing is come since the last update (I think)

I have the next code in obj_hoeklb.
<step event>
x=obj_links.x;
y=obj_boven.y;

This works always but since the last update it won't work in HTML5, my sprite won't draw. (Only by HTML5).

I used three times the show_message funcion to see some variables in HTML5.

First:
obj_hoeklb:
show_message('id:'+string(id)+': x:'+string(x)+': y:'+string(y));
Gives the result:
id: 1000024: x:NaN: y:NaN

Second:
obj_hoeklb:
show_message('id:'+string(id)+': x:'+string(obj_links.x)+': y:'+string(obj_boven.y));
Gives the result:
id: 1000024: x:undifened: y:undifened

Third:
obj_links:
show_message('id:'+string(id)+': x:'+string(x)+': y:'+string(y));
Gives the result:
id: 1000024: x:96: y:96

I have no idea how I can fix this.
I am looking for some help.

This is an example.
http://updo.nl/file/2a316c1e.gmz
example.gmz
  • 0

#2 Mayhem Games

Mayhem Games

    Proud Kiwi

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

Posted 10 June 2012 - 07:06 PM

bugs.yoyogames.com :thumbsup:

Edited by Mayhem Games, 10 June 2012 - 07:07 PM.

  • 2

#3 rwkay

rwkay

    YoYo Games CTO

  • YoYo Games Staff
  • 1415 posts
  • Version:Unknown

Posted 11 June 2012 - 10:51 AM

This is fixed in an update we are currently testing... it should be out this afternoon.

Russell
  • 0

#4 tomboman

tomboman

    GMC Member

  • GMC Member
  • 3 posts
  • Version:GM8

Posted 11 June 2012 - 06:29 PM

This is fixed in an update we are currently testing... it should be out this afternoon.

Russell


Thank you, but this is also for the direction (and I think all of the other automatic variables).
  • 0

#5 rwkay

rwkay

    YoYo Games CTO

  • YoYo Games Staff
  • 1415 posts
  • Version:Unknown

Posted 11 June 2012 - 06:36 PM

It is the same problem... there was a bug in the Javascript compiler which affected them all.

Russell
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users