# Action

> Aego 0.12.5 · development; docs build `4a32b816933e02930662f6a443cb25abe6050d090c55e237cbff5c44ae9b25f8`. [Build manifest](/docs-build.json).

```
type Action
```

Action runs tweens, timers and other actions one after another or together; yield a waits until it ends.

## Action.Done

```
func (Action) Done() bool
```

Reports whether the action ended, was stopped or is nil.

## Action.Running

```
func (Action) Running() bool
```

Is the opposite of Done.

## Action.Stop

```
func (Action) Stop()
```

Stops every unfinished step; the properties keep their current values.

## Action.Then

```
func (Action) Then(tween Handle<aego/tween.Tween>) Handle<aego/action.Action>
```

Adds a tween created in this frame; it waits for its turn.

## Action.ThenAction

```
func (Action) ThenAction(action Handle<aego/action.Action>) Handle<aego/action.Action>
```

Adds another action that has not started.

## Action.ThenTimer

```
func (Action) ThenTimer(timer Handle<aego/timer.Timer>) Handle<aego/action.Action>
```

Adds a timer created in this frame; the step ends when the timer ends.

## Action.Wait

```
func (Action) Wait(seconds float) Handle<aego/action.Action>
```

Adds a pause in game seconds.

## Action.Completed

```
signal Completed(finished bool)
```

Runs once when the action ends; finished is false after Stop or when the node of its script died.
