# Enhanced Movement

## Source Code (V1.0.0)

<details>

<summary><a href="https://cdn.discordapp.com/attachments/1119585136913162240/1119585137051582464/enhancedmovement.js">EnhancedMovement.js</a> (Click Link to Download)</summary>

```javascript
// gimhook: {"name":"Enhanced Movement","description":"A mod to easily move in bigger jumps around the map, and through walls.","version":"1.0.0","author":"Coder_Gage","license":"MIT"}
(() => {
    // src/index.ts
    gimhook.addHook("join", () => {
      console.log("Game joined!");
      console.log("Thanks for Using My Mod!")
      console.log("-Coder_Gage")
  
      x = 0
      y = 0
      xy = 0

      moveValue = 100

      window.addEventListener("keydown", function(event) {
        if(event.code == 'KeyA' && event.shiftKey) {
            if(x > 100) {
            gimhook.graphics.player.setPosition(x-moveValue, y)
            } else {
                console.log("To Far Left!")
            }
        }
        if(event.code == 'KeyD' && event.shiftKey) {
            if(x < 31900) {
            gimhook.graphics.player.setPosition(x+moveValue, y)
            } else {
                console.log("To Far Right!")
            }
        }
        if(event.code == 'KeyW' && event.shiftKey) {
            if(y < 31900) {
            gimhook.graphics.player.setPosition(x, y-moveValue)
            } else {
                console.log("To Far Up!")
            }
        }
        if(event.code == 'KeyS' && event.shiftKey) {
            if(y > 100) {
            gimhook.graphics.player.setPosition(x, y+moveValue)
            } else {
                console.log("To Far Down!")
            }
        }
        if(event.code == 'KeyR' && event.shiftKey) {
            gimhook.graphics.player.setPosition(16000, 16000)
        }
      });  

      setInterval(function getpos() {
        xy = gimhook.graphics.player.getPosition();
        x = xy['x'];
        y = xy['y'];
    }, 2)

    });
})();
```

</details>

## How to Use It

After installing the mod, hold the shift key while using `WASD` to move around in bigger jumps. View the [customizability ](#customizability)section to learn how you can customize this mod to your liking.

## Customizability

This mod has multiple customizable options.

{% tabs %}
{% tab title="moveValue" %}
This is a variable defined at the beginning of the code. Customize it to change how far you move each time you jump around. The default value is `100`, but you can change it to `250` if you want to move around in bigger jumps.
{% endtab %}

{% tab title="Keybinds" %}
Holding `shift` while using `WASD` activates the jumps. I recommend keeping the shift required but feel free to change `WASD` to other keys. You can use [this](https://www.toptal.com/developers/keycode)[ website](https://www.toptal.com/developers/keycode) to figure out each key value. For example, if you prefer to use the arrow keys to move around, you can change `KeyA` to `ArrowLeft`, and repeat for each key.
{% endtab %}
{% endtabs %}

## Changelog

<table><thead><tr><th>Version</th><th>Changes</th><th data-hidden></th></tr></thead><tbody><tr><td>v1.0.0</td><td>Created the actual mod with <code>WASD</code> "jumped" movement.</td><td></td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gimhook.coder-gage.dev/gimforge-mods/enhanced-movement.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
