Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (vicknick, AndrewAMD), 1,292 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
button offset? #375505
06/26/11 01:30
06/26/11 01:30
Joined: Aug 2002
Posts: 164
Houston
Nicholas Offline OP
Member
Nicholas  Offline OP
Member

Joined: Aug 2002
Posts: 164
Houston
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


Black holes are where God divided by zero.
Re: button offset? [Re: Nicholas] #375506
06/26/11 01:39
06/26/11 01:39
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
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.

Last edited by Superku; 06/26/11 01:42.

"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: button offset? [Re: Superku] #375570
06/26/11 15:53
06/26/11 15:53
Joined: Aug 2002
Posts: 164
Houston
Nicholas Offline OP
Member
Nicholas  Offline OP
Member

Joined: Aug 2002
Posts: 164
Houston
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.


Black holes are where God divided by zero.

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1