knightshaft
Member
I'm still mostly working in DND but I have an 'execute code' box with this:
if point_in_rectangle(mouse_x, mouse_y, 950, 530, 980, 550 )
{
url_open("http://www.mysite.com");
}
It's the only thing in a 'left pressed' event, It works fine....but the code never works anywhere else.... EVER! If I want another click event I have to duplicate the object. If I want to do it in another project I have to import the object. This has lead to a bizarre discovery....
When I import the object, it also import a completely unrelated sprite, if I delete the sprite, ALL the click events stop working!!!!
if point_in_rectangle(mouse_x, mouse_y, 950, 530, 980, 550 )
{
url_open("http://www.mysite.com");
}
It's the only thing in a 'left pressed' event, It works fine....but the code never works anywhere else.... EVER! If I want another click event I have to duplicate the object. If I want to do it in another project I have to import the object. This has lead to a bizarre discovery....
When I import the object, it also import a completely unrelated sprite, if I delete the sprite, ALL the click events stop working!!!!