Image Dissolve for Image Buttons?
Posted: Mon Jul 30, 2018 11:09 am
Hi all,
I have some imagebuttons that I want to animate. When hovered, I want the image to appear as though it's being painted. I've been using Image Dissolve for this effect so far in my game.
However, I'm stuck
I've tried a few things but I can't seem to get Image Dissolve to work (or even a normal dissolve with ATL/ alpha!)
Here's my current code...
In screens:
In script:
But it just shows the replacement image immediately on hover.
Is it possible to do this? I'm thinking it's probably easier to use animated sprites/ video files at this point
I have some imagebuttons that I want to animate. When hovered, I want the image to appear as though it's being painted. I've been using Image Dissolve for this effect so far in my game.
However, I'm stuck
Here's my current code...
In screens:
Code: Select all
imagebutton idle "truckidle" hover "truckhover" clicked Return('truck') xpos 0 ypos 183Code: Select all
image truckidle = "images/summer1/search_truck1.jpg"
image truckhover:
"images/summer1/search_truck.jpg" with ImageDissolve("images/summer1/search_truck_bw.jpg", 1.0, reverse=False, ramplen=50) ## Doesn't work, but doesn't crash
Is it possible to do this? I'm thinking it's probably easier to use animated sprites/ video files at this point