S
SlowYourRo
Guest
Hello. I've been using Game maker for about 2 years now and I recently discovered how to scale a game on a browser. I want to run games on my website but I'm having an issue. I have on-screen buttons in the game that work fine when the game is played at normal size. However, when I start to scale the game down on the browser ande mobile the on-screen buttons sizes down but functions seem to move away from the screen.
the video is here
In the video on the top left part of the game screen there is a 0 and 1. 0 when it is false and 1 when it is true. The variable is "is _over" the the code i used was in the button object
if (position_meeting(mouse_x,mouse_y,obj_title_play))
{
is_over = true;
}
else
{
is_over = false;
}
so whats suppose to haven is when the button is iver the mouse the zero is suppose to become a one and it dose when the game is the full size but as i alter the size the 'is_over' Variable starts to become 1 elsewhere.
Plase help thank you in advance.
the video is here
In the video on the top left part of the game screen there is a 0 and 1. 0 when it is false and 1 when it is true. The variable is "is _over" the the code i used was in the button object
if (position_meeting(mouse_x,mouse_y,obj_title_play))
{
is_over = true;
}
else
{
is_over = false;
}
so whats suppose to haven is when the button is iver the mouse the zero is suppose to become a one and it dose when the game is the full size but as i alter the size the 'is_over' Variable starts to become 1 elsewhere.
Plase help thank you in advance.