Jump to content


Photo

mb_left - activated anyways instead of button


  • Please log in to reply
No replies to this topic

#1 ChefDavid22

ChefDavid22

    No, YOU shut up!

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

Posted 22 May 2012 - 11:27 PM

I'm noticing in my html5 build the check mouse button code works if I click anywhere on the screen rather than on the button itself. So once the round ends I can click anywhere to restart - in all other platforms it works by clicking on the button as designed. How can I adjust for html5?

if mouse_check_button(mb_left)
   {
    if (collision_point(mouse_x,mouse_y,id,true,false) >= 0)
    {
    room_restart();
    }
   }

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users