Jump to content

Programming Help:Action Method

From Agentpedia, the Microsoft Agent encyclopedia
Action Method
Plays the specified action for the specified actor.
Introduced in version:Microsoft Actor 1.0
Removed in version: Still in use
Allowed values:x (Required)
Default value:None


Parts

Part Description
x Required. An integer that specifies the animation number.

Examples

Inline example (Visual Basic 3.0)
Actor1.Action = 2
Advanced example (Visual Basic 3.0)
' This code cycles through the first three actor animations
Private Sub Command2_Click()
Dim i As Integer
On Error Resume Next
For i = 1 To 3
Actor1.Action = i
DoEvents
Next i

End Sub

Remarks

All animation numbers are defined when the character is compiled with the Utopia Animation Editor.