# Behaviors

> The catalogue of behaviors in rmp::behavior: what each one does to the object that has it.

Source: https://omardev29.github.io/rmp-docs/reference/behaviors/index.html

The catalogue of behaviors in rmp::behavior: what each one does to the object that has it.

| Name | What it is |
|---|---|
| [`rmp::behavior::Animator`](https://omardev29.github.io/rmp-docs/reference/behaviors/Animator.html) | Plays the tag that fits what the object is doing: `die` once its Health is dead, `hurt` while it is invulnerable after a hit, `jump` and `fall` in the air (with gravity), `run` while it moves and `idle` while it does not — and mirrors it with flip_x by the way it moves. |
| [`rmp::behavior::Area`](https://omardev29.github.io/rmp-docs/reference/behaviors/Area.html) | A region that says who comes and goes: a trigger, a door's sensor, a pit, a shop's counter. |
| [`rmp::behavior::Ball`](https://omardev29.github.io/rmp-docs/reference/behaviors/Ball.html) | Bounces, keeps its pace, and leaves a paddle at an angle that depends on where it hit. |
| [`rmp::behavior::Chase`](https://omardev29.github.io/rmp-docs/reference/behaviors/Chase.html) | Sees a target and goes after it. |
| [`rmp::behavior::Collectible`](https://omardev29.github.io/rmp-docs/reference/behaviors/Collectible.html) | A coin, a key, a heart. |
| [`rmp::behavior::Draggable`](https://omardev29.github.io/rmp-docs/reference/behaviors/Draggable.html) | Picked up with the pointer and put down somewhere. |
| [`rmp::behavior::Follow`](https://omardev29.github.io/rmp-docs/reference/behaviors/Follow.html) | Chases a handle, with a speed and a distance it stops at. |
| [`rmp::behavior::GridSnap`](https://omardev29.github.io/rmp-docs/reference/behaviors/GridSnap.html) | Squares the position with a grid, AFTER everything that moves it. |
| [`rmp::behavior::Health`](https://omardev29.github.io/rmp-docs/reference/behaviors/Health.html) | Hit points, a window of invulnerability with a blink, and death. |
| [`rmp::behavior::Hitbox`](https://omardev29.github.io/rmp-docs/reference/behaviors/Hitbox.html) | What hurts: a sword's swing, a spike, a bullet, an explosion. |
| [`rmp::behavior::Lifespan`](https://omardev29.github.io/rmp-docs/reference/behaviors/Lifespan.html) | Discarded after N seconds. |
| [`rmp::behavior::Orbit`](https://omardev29.github.io/rmp-docs/reference/behaviors/Orbit.html) | Circles a handle or a point: a shield of blades, a moon, a fairy. |
| [`rmp::behavior::Parallax`](https://omardev29.github.io/rmp-docs/reference/behaviors/Parallax.html) | A background layer that scrolls at its own factor and repeats itself with no seam. |
| [`rmp::behavior::Pathfind`](https://omardev29.github.io/rmp-docs/reference/behaviors/Pathfind.html) | Walks to a target, or to a point, around the map's walls: `rmp::find_path()`, asked again every `repath_every` seconds, and followed at `speed`. |
| [`rmp::behavior::Patrol`](https://omardev29.github.io/rmp-docs/reference/behaviors/Patrol.html) | Goes from waypoint to waypoint — round in a loop, or back and forth with `ping_pong` — waiting `wait` seconds at each. |
| [`rmp::behavior::Platformer`](https://omardev29.github.io/rmp-docs/reference/behaviors/Platformer.html) | Gravity, jumping, ground, coyote time and a buffered jump. |
| [`rmp::behavior::Projectile`](https://omardev29.github.io/rmp-docs/reference/behaviors/Projectile.html) | Travels the way you pushed it and is discarded when it leaves or hits. |
| [`rmp::behavior::Runner`](https://omardev29.github.io/rmp-docs/reference/behaviors/Runner.html) | Constant forward motion that SPEEDS UP over time, with a jump and a duck. |
| [`rmp::behavior::Shooter`](https://omardev29.github.io/rmp-docs/reference/behaviors/Shooter.html) | Fires. |
| [`rmp::behavior::Spawner`](https://omardev29.github.io/rmp-docs/reference/behaviors/Spawner.html) | Produces objects every N seconds, or every N units TRAVELLED. |
| [`rmp::behavior::StateMachine`](https://omardev29.github.io/rmp-docs/reference/behaviors/StateMachine.html) | Named states and the moves between them: an enemy that idles, patrols, chases and flees; a boss's phases. |
| [`rmp::behavior::Talker`](https://omardev29.github.io/rmp-docs/reference/behaviors/Talker.html) | Someone to talk to. |
| [`rmp::behavior::Timer`](https://omardev29.github.io/rmp-docs/reference/behaviors/Timer.html) | Calls you every N seconds. |
| [`rmp::behavior::TopDown`](https://omardev29.github.io/rmp-docs/reference/behaviors/TopDown.html) | Eight directions, and the sprite chosen from the one you are facing. |
| [`rmp::behavior::Tween`](https://omardev29.github.io/rmp-docs/reference/behaviors/Tween.html) | Moves one property of its object from `from` to `to` over `seconds`, along an Ease. |
