mob |
Problem description: When clicking a mob, GetPixel() doesn't send the rgb value in px,py. Am I using the this proc correctly?
ID:263782
Nov 4 2007, 9:20 am
|
||
Code:
Problem description: When clicking a mob, GetPixel() doesn't send the rgb value in px,py. Am I using the this proc correctly? | ||
#1 Nov 4 2007, 9:38 am
|
|
What exactly are you tying to accomplish? In the DM Ref. it says that it returns the color value of the pixel in location(px,py) in the icon.
| |
#2 Nov 4 2007, 11:49 am
|
|
GetPixel() doesn't return a pixel or any icons. It returns the color in hex code, I think.
| |
In the DM Ref. it says that it returns the color value of the pixel in location(px,py) in the icon. Exactly. But, as I said, no color is outputted when I click on a mob (with an icon). | |
Ah, I see what you mean. I tried out the code and it seemed ot have returned null for some odd reason. Maybe this is a bug?
| |
#5 Nov 7 2007, 11:02 am
|
|
Please? I really need this problem solved!
| |
#6 Nov 7 2007, 5:27 pm
|
|
Are you specifying an icon state for new/icon()? If the icon has an icon state with a null label then you don't need to.
Also, where you're clicking on the mob could be mask in the palette icon. If it is, then GetPixel() will return null. | |
The icon has an icon state with a null label, and I specified where I was clicking using the px/py variables. I don't think the location is masked because the icon is the same icon the mob uses, and even when the icon is displayed on something the value returned is still null. :-/
| |
#8 Nov 12 2007, 4:00 am
|
|
Oh please? It can't be that hard!
| |