Jump to content


Photo

Weird problem with MouseEnter collision code


  • Please log in to reply
3 replies to this topic

#1 Ggd07

Ggd07

    GMC Member

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

Posted 10 January 2011 - 04:56 PM

Hello. I am currently making a main menu for a project, and it suffers from a problem that I cannot locate and troubleshoot.

I made an object which control's the intro of the menu (title flying to the top, buttons appearing), after all that happens, a variable unlocks the buttons.

I use this code

if (collision_point(mouse_x,mouse_y,playnow_obj,false,false)) {
//code here.. (for when the mouse is over the particular button)
}

Everything works on my machine (i'm with windows 7), and on my mom's machine (windows xp) also everything is fine. I tried it on a 3rd machine, and when yo go over with the mouse on the button, nothing happens.
However, if you go slightly below the button, and a little to the right, the effect works again. It's like the collision mask is set x+150 pixels to the right and y+100 pixels below.

I don't know what is causing this, but it works fine with me. I tried with another friend, and he gets the same problem.

Am I doing something horribly wrong ?
  • 0

#2 lemonheadsg

lemonheadsg

    GMC Member

  • GMC Member
  • 184 posts

Posted 10 January 2011 - 05:10 PM

This is frustrating...trust me I know, but the solution is quite easy! This is a resolution issue that happens when different computers are set to a different resolutions. Go to the games settings and under graphics or resolution, not to sure but it's not hard to find, and simply change the resolution to what you want. This should fix your issue.
  • 0

#3 Ggd07

Ggd07

    GMC Member

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

Posted 10 January 2011 - 05:12 PM

This is frustrating...trust me I know, but the solution is quite easy! This is a resolution issue that happens when different computers are set to a different resolutions. Go to the games settings and under graphics or resolution, not to sure but it's not hard to find, and simply change the resolution to what you want. This should fix your issue.


I will try asap!

Thank you very much for the fast answer lemonheadsg!
  • 0

#4 Ggd07

Ggd07

    GMC Member

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

Posted 10 January 2011 - 06:18 PM

strange.. when I set the resolution on anything lower than 1280x1024.. the problem occurs.. :( never had this problem before..

Edited by Ggd07, 10 January 2011 - 06:19 PM.

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users