button offset?

Posted By: Nicholas

button offset? - 06/26/11 01:30

I am having trouble with my mouse working properly.
I have a button, but the sensitive area seems to bee 10-15 pixels too far to the right. I need to be further into it to activate and can still activate further out to the right.
using:
mouse_mode = 4;
mouse_map = cursor_tga;

I also tried mouse_pos.x = mouse_cursor.x-10;
in loop without it actually doing anything.

any idea why it is offset?
thanks
Posted By: Superku

Re: button offset? - 06/26/11 01:39

Does mouse_spot help you?

EDIT: Oh I guess I did not read correctly. The shape of the button is determined by your "bmapOn" button (the first bmap), so be aware if you use different bmaps.
Posted By: Nicholas

Re: button offset? - 06/26/11 15:53

don't mind me. I was being stupid. My mouse map tga file wasn't the right size before so the alpha wasn't working. I noticed it had to be 32x32 pixels. I just added the space around the pointer without moving the pointer to the top left of the image.
oops.
thanks for the reply though, I think you mentioning the mouse spot got me thinking about it being in the default position and where that actually was in my image.
© 2024 lite-C Forums