Please Help With Scripting

I would like an object to play an animation, then revert to a different state when it's done, How?

Wednesday, October 19, 2005 by ItsyLady | Discussion: DesktopX

Sorry, this is probably a dumb question, but how can you make one state of an object run an animation then revert to a different state? I was thinking something in the way of a timer script, but I just started so I don't know how to do that.

Please help me!

Thanks, everyone!
ItsyLady
Reply #1 Thursday, October 20, 2005 5:14 AM
Sub Object_OnScriptEnter
Object.SetTimer 2, Your time in seconds times a thousand here
End Sub

Sub Object_OnTimer2
If Object.State = "AnimationStateNameHere" Then
Object.State = "RevertToThisState"
End If
End Sub

This seems to work...just in case anyone else has this problem

Please login to comment and/or vote for this skin.

Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:

  • Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
  • Access to a great community, with a massive database of many, many areas of interest.
  • Access to contests & subscription offers like exclusive emails.
  • It's simple, and FREE!



web-wc01