Partager via


IAvatarAnimation.Update Method

Updates the current time position of the avatar animation.

Ff827882.note(en-us,XNAGameStudio.40).gifWindows Specific Information
Avatar-related APIs are exposed on Windows to ease cross-platform development between Windows and the Xbox 360. All avatar-related methods return default values, and rendering methods do not draw anything to the screen.

Namespace: Microsoft.Xna.Framework.GamerServices
Assembly: Microsoft.Xna.Framework.Avatar (in microsoft.xna.framework.avatar.dll)

Syntax

public void Update (
         TimeSpan elapsedAnimationTime,
         bool loop
)

Parameters

  • elapsedAnimationTime
    Elapsed time since the last animation frame. This value can be a positive or a negative time span. If the value is negative, animation playback is reversed.
  • loop
    true if animation playback is to be looped; otherwise, false.

See Also

Reference

IAvatarAnimation Interface
IAvatarAnimation Members
Microsoft.Xna.Framework.GamerServices Namespace

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP