Update:
I created a new object and set it's appearance. I then added the script and it sorta worked. Here's what it needs to do:
3 Stages of animation
Stage 1 - Still image
Stage 2 - Animated Forward
Stage 3 - Animated Backward
The order should be, Stage 1 until clicked, then Stage 2 for 5 seconds, then Stage 3, and finally stage 1 again until clicked once more.
What's happening is this: Stage 1 until clicked, then Stage 2 for 5 seconds, then Stage 1 again until clicked, then it goes to the last frame in Stage 2 for 5 seconds, Stage 1, repeat.
Is something wrong with the script? Here's what I have so far:
Code: vbscript
- Sub Object_OnScriptEnter
- End Sub
- Function Object_OnLButtonUp(x, y, Dragged)
- If Dragged = False Then
- Object.SetPicture "YingYangAnimStrip.bmp",28,50,&H0000008
- Object.SetTimer 1, 5000
- End If
- End Function
- Sub Object_OnTimer1
- Object.SetPicture "YingYangAnimStrip.bmp",28,50,&H0000002
- Object.KillTimer 1
- End Sub
- Sub Object_OnScriptExit
- End Sub