-SOLVED- Need help with scripting animation
My code doesn't work
I'm trying to set up an animation to play when I click on it, then wait about 5 seconds, and then return to it's original state. Here's what I have so far:
- 'Called when the script is executed
- Sub Object_OnScriptEnter
- End Sub
- Sub Object_OnStateChange(state)
- If state = "Mouse Down" Then
- Object.SetPicture "YinYangAnimStrip.bmp",28,50,&H0000008
- Object.SetTimer 1, 5000
- End If
- End Sub
- Sub Object_OnTimer1
- Object.SetPicture "IMG00000.bmp",1,50,&H00000008
- Object.KillTimer 1
- End Sub
- 'Called when the script is terminated
- Sub Object_OnScriptExit
- End Sub
The code won't work for me, so I must be doing something wrong. Can someone help me out?
Thanks ![]()