![]() |
x/y - screenwidth/screenheight
ok, let me try to explain what's going on. I've been racking my brain for this for awhile, I've got it somewhat figured out though.
I have an image I'm displaying on the client's screen using showimg and changeimgvis of 4, so it's using screenwidth/screenheight. There is a part of this menu I want to be able to click on to make changes happen. This is the part I'm having trouble with, I have to convert the mousex/mousey to work with screenwidth/screenheight. I dunno, anyone know how to do this? I'm giving myself a headache trying to think about it.... |
GrowlZ:
No need. Ever heard of mousescreenx and mousescreeny? They return the location of the mouse in pixels. mousex and mousey only show the location on the game screen (x,y of 0,63). |
Quote:
oooooohhhhhh ok, thanks. <3 |
GrowlZ:
No problem. :) Need any more help, just post, and I'll see what I can do. |
HOw do you use mousescreenx and mousescreeny? I haven't had a use for these yet, but I figure I'd do an abs(mousex-screenwidth/2)=<1 or whatever. Hmm...
---Shifter |
NPC Code: Simple code. :p |
lol. I have never used in but I've seen it. x.x
---Shifter |
Quote:
|
All times are GMT +2. The time now is 09:29 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.