I was wondering if anyone has come across this problem before. I have an animated image button in my game and although I can get it to display fine, when you hover over it or unhover the animation plays rapidly once and then settles back down into its normal animation cycle. This will happen every time it changes state.
I've included the code for the image (which is its own separate tab, not under the image button code). I've tried making the button with Auto, made another image up with raina_button_hover, which is the same animation as I want the button to constantly be animated even when it is hovered.
I've removed the custom mouse cursor from the code and its made no difference the animation always plays one fast loop when the mouse either hovers or unhovers over the button. I've tried to have a static image for when the button is hovered but again same thing happens.
The image never hangs on an animation frame or anything like that.
I can't think what's left to try at this point.
Code: Select all
screen mckitchen_room:
if morning == True:
add "bg mckitchen day"
else:
add "bg mckitchen night"
imagebutton idle "raina_button_idle" focus_mask True action Jump("raina_talk") mouse "hover"
init -3:
image raina_button_idle:
"buttons/anim/kraina.png"
linear 0.1
"buttons/anim/kraina2.png"
linear 0.1
"buttons/anim/kraina3.png"
linear 0.1
"buttons/anim/kraina4.png"
linear 0.1
"buttons/anim/kraina5.png"
linear 0.1
"buttons/anim/kraina6.png"
linear 0.1
"buttons/anim/kraina7.png"
linear 0.1
"buttons/anim/kraina8.png"
linear 0.1
"buttons/anim/kraina9.png"
linear 1
"buttons/anim/kraina8.png"
linear 0.1
"buttons/anim/kraina7.png"
linear 0.1
"buttons/anim/kraina6.png"
linear 0.1
"buttons/anim/kraina5.png"
linear 0.1
"buttons/anim/kraina4.png"
linear 0.1
"buttons/anim/kraina3.png"
linear 0.1
"buttons/anim/kraina2.png"
choice:
4.5
choice:
3.5
choice:
1.5
repeat