> For the complete documentation index, see [llms.txt](https://kree.gitbook.io/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kree.gitbook.io/documentation/gameobject-components/playermovement.md).

# PlayerMovement

Make your GameObject move with keys.

> Component Author: jabo-bernardo\
> Release Date: April 13, 2020

{% tabs %}
{% tab title="Usage" %}

```java
new PlayerMovement(float speed, int movementType);
```

{% endtab %}

{% tab title="Static Variables" %}

```java
PlayerMovement.ARROWS; // Movement type that uses arrow keys

PlayerMovement.WASD; // Movement type that uses WASD keys
```

{% endtab %}
{% endtabs %}
