# Sandbox.Sprite.AnimationState.TryAdvanceFrame

```csharp
bool TryAdvanceFrame(Animation animation, float deltaTime)
```

Try to advance the frame of a given animation with a given delta time. Returns false if the frame did not advance.

### Parameters

- `animation` (`Animation`)
- `deltaTime` (`float`)

### Returns

`bool`

Declared in [Sandbox.Sprite.AnimationState](/api/Sandbox.Sprite.AnimationState).
Assembly: `Sandbox.Engine`.
