# Mover

Mover is one of the most commonly used entity components, and can be made to do all kinds of things. It allows an object to move in a straight line, in any direction on any axis, and at any speed.

The distance, speed and direction of a Mover object can be tested at any time during create mode by pressing the play button on the top right of the object's component menu ▶️

![](https://3166848498-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzaqFJFbPM2opQ4D43YaF%2Fuploads%2FDK087BkPU5FswJXyhpmT%2FMover.png?alt=media\&token=a7297696-2ef4-4e4a-ae8a-cb0d835c55c9)

* **End position** - dictates where you want your object to end its journey.&#x20;
  * Measured by meters.
    * Hover over the x/y/z axis letters to reveal arrows to set distance and direction, or simply type directly numbers into the value box.
    * Depending on the placement and rotation of the object, this can take some trial and error, but once you know which way you're pointed, it's easy!
    * By default, the X axis value is set to 1.<br>
* **Speed** - dictates how fast or slow the object will move.&#x20;
  * Measured by meters per second
  * i.e. an object with a 10m end position will take 10 seconds to reach it at speed 1, and only 5 seconds at speed 2.<br>
* **Auto-start** - dictates whether or not the object begins its journey from the start of the game.
  * "Yes" means the object will automatically be moving.
  * "No" means the object requires a linking event to trigger its movement.<br>
* **Yo-yo** - dictates where or not the object will move back and forth between its start and end position.
  * "Yes" means the object will automatically travel back and forth once its journey is complete in either direction.
  * "No" means the object will only travel once in one direction, and stop at its end position, unless told otherwise by a linking event.<br>
* **Start position (%)** - dictates at what point in the object's journey it begins moving.
  * 0% means it will move exactly from its current position in the world to its end position
  * 50% means its current position in the world is now half-way between where the set journey starts and ends.

![0% start position VS 50% start position](https://3166848498-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzaqFJFbPM2opQ4D43YaF%2Fuploads%2FcwpPVdYDbE53WmgLbAAF%2Fezgif.com-gif-maker%20-%202022-03-15T132423.647.gif?alt=media\&token=9760b313-53bd-4e3f-bb48-2035a94e5a4e)

### Common uses

* [Elevator](https://docs.mutate.games/component-tutorials/components-a-closer-look/entity-components/mover/elevators)
* Bridges and platforms (seen above)
* Push traps - spikes coming out of the ground, battering rams, etc.
* Secret doors/moving walls - push a button, and the wall descends into the ground!
* Decoration and ambience - cars, animals, rain, etc.

![](https://3166848498-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzaqFJFbPM2opQ4D43YaF%2Fuploads%2FXARGRhVXeb6mGs9STL5w%2Fezgif.com-gif-maker%20-%202022-03-15T133611.373.gif?alt=media\&token=2dcbce47-f241-49f0-8e47-a2a9eb5dd8af) ![](https://3166848498-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzaqFJFbPM2opQ4D43YaF%2Fuploads%2F3cX6LwQE5FyvDCJP0hsk%2Fezgif.com-gif-maker%20-%202022-03-15T133402.256.gif?alt=media\&token=1cdaf2b6-20b6-42c6-8e9f-fe5ad0a1dd9e)

![](https://3166848498-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzaqFJFbPM2opQ4D43YaF%2Fuploads%2F3JjNC2bFVdWbe9h0H39H%2Fezgif.com-gif-maker%20-%202022-03-15T134100.207.gif?alt=media\&token=41814954-ec64-4a1f-992f-ce536be67a76)
