Ok this is just for astetics... but I'm immitating a 3d windows button when clicked. The only problem is this code works, but not for the who png which is 96x32. It breaks it up into 32x32 squares depending where I click on it.
Does anyone know how I could make the entire PNG (96x32) image move instead of where it was clicked??
Click()
pixel_x = 2
pixel_y = -2
sleep(3)
pixel_x = 0
pixel_y = 0
ID:148317
Apr 8 2003, 9:27 pm
|
|
You'd have to change pixel_x and pixel_y for each of the 3 atoms making up the button. This is probably easiest done with a list, or some kind of link between segments, and by looping through them. One solution:
This system could be expanded to have parent elements, perhaps a first child element and a link to a sibling, etc. The next/prev links will avoid using too many lists.
Lummox JR