Jump to content

Programming Help:Background Method

From Agentpedia, the Microsoft Agent encyclopedia
Background Method
Activates the background for the specified actor.
Introduced in version:Microsoft Actor 1.0
Removed in version: Still in use
Allowed values:x (Required, integer)
Default value:N/A


Parts

Part Description
x Required. If it is set to 0, the actor's background will not be active when the next action is played. Otherwise, it will use the background set in the Utopia Animation Editor (if applicable) if the value is less than 0 or higher than 1.

Examples

Inline example (Visual Basic 3.0)
Actor2.Background = 1
Actor2.Refresh
Actor2.Action = 1
Advanced example (Visual Basic 3.0)
' this example simulates taking an actor outside, with Form1 having a Bob static text label and Bob word balloon separate form
Private Sub PlayOutsideCommandBtn_Click()
FormBalloon1.Show
Actor1.Background = 1
Actor1.Refresh
Actor1.Action = 2
StatTxt1.Text = "Welcome to the outside area!"
End Sub

Remarks

If the Background is set 0, it displays the character without the assigned Utopia Animation Editor background. Otherwise, if it is another value (1,2,5,-1,-10,1234,etc), it uses the background for the next action.