Odessey.lua
DOWNLOAD NOT AVAILABLE
Odessey.lua is an API that mimics the ability to possess enemy in Super Mario Odyssey.
How to use
To load the API, place this line in your script.
local odesey = API.load("odessey")
This API requires a folder called odessey. The is a required file in this folder must be a PNG file called hat
hat
The hat is an object that is activated with the alt-run key. You can customize the hat by changing some of these values.
| Name | Default Value | Description |
|---|---|---|
| img | LuaImgResource
"hat.png" found inside the Odessey folder |
The image of the hat. |
| x | Number
0 (Automatically moves to the player when the hat is activated) |
The X coordinate of the hat. |
| y | Number
0 (Automatically moves to the player when the hat is activated) |
The Y coordinate of the hat. |
| gfxOffsetX | Number
0 |
The X offset of the image. |
| gfxOffsetY | Number
0 |
The Y offset of the image. |
| speedX | Number
0 |
The current x-speed of the hat. |
| speedY | Number
0 |
The current y-speed of the hat. |
| speedXMax | Number
7.5 |
The maximum x-speed of the hat.
Will automatically cap negative numbers too (setting speed -8 will turn into -7.5) |
| speedYMax | Number
4 |
The maximum y-speed of the hat.
Will automatically cap negative numbers too (setting speed -8 will turn into -4) |
| speedXIni | Number
6 |
The initial x-speed of the hat when it is activated.
Will automatically flip the number to negative if the player is facing left. |
| speedYIni | Number
0 |
The initial y-speed of the hat when it is activated. |
| width | Number
32 |
The width of the hat. |
| height | Number
32 |
The height of the hat. |
| facing | Number
1 (Will either turn to -1[left] or 1[right] when activated. The direction facing will match the direction the player is facing. |
The initial direction of the hat when it is activated. |
| frame | Number
1 |
The current frame that is being drawn. |
| frames | Number
8 |
The total amount of frames. |
| frameSpeed | Number
8 |
The number of frames it should wait until the next frame appears. |
| animationTimer | Number
0 |
The timer that counts the frames passed between frames. When this number reaches frameSpeed, it will reset to 0 and increment frame by 1. |
| timer | Number
0 |
The number of frames that have passed since when the hat was activated. |