Hello folks,
I am trying to upgrade the finished parts of my game to actual Asphyre Version and now there is the following problem:
I need to check single color of pixels when moving the mouse to decide if the mouse is over an "object" or not.
When using the following (sample)code, my computer shows me a bluescreen and reboots:
if Images1.Image['introbtn1'].Pixels[MouseX,MouseY,0] <> Images1.Image['introbtn1'].MaskedColor then
MouseOverBtn := true
else
MouseOverBtn := false;
What is wrong here? I need to check the color under the mouseposition. If it is not the MaskedColor (not visible elements) then I know the mouse is over my button or something similar.
In PowerDraw3Pre this worked perfectly.
Or is there a problem with TAsphyreImages?
Any hint is welcome.
Greetings,
Dirk
Bookmarks