- 239
- Posts
- 9
- Years
- Seen Apr 17, 2025
[Pokeemerald] Sideways Stairs
NOTE: This project has been revamped!
This feature adds sideways stairs to pokeemerald, which give maps a better sense of elevation change. In addition, it adds the feature from FRLG where the player moves slower when moving on stairs.
Here is the repo. I've tried to make it as simple as possible to set up. In order to keep the number of additional tiles/metatiles as low as possible, 6 additional behaviors are added
The following spoiler details how the collisions/tile behaviors are arranged. The top/bottom behaviors are needed to prevent the player from walking up/down the outside of the stairs.
Feature Notes:
Feature Changes:
How To Add:
Bugs/Issues:
Credits:
NOTE: This project has been revamped!
This feature adds sideways stairs to pokeemerald, which give maps a better sense of elevation change. In addition, it adds the feature from FRLG where the player moves slower when moving on stairs.
![[PokeCommunity.com] Sideways Stairs [PokeCommunity.com] Sideways Stairs](https://i.imgur.com/Jr75OdM.gif)
![[PokeCommunity.com] Sideways Stairs [PokeCommunity.com] Sideways Stairs](https://i.imgur.com/GTL2LTN.gif)
![[PokeCommunity.com] Sideways Stairs [PokeCommunity.com] Sideways Stairs](https://i.imgur.com/3Mj7RtZ.gif)
![[PokeCommunity.com] Sideways Stairs [PokeCommunity.com] Sideways Stairs](https://i.imgur.com/NKtECSC.gif)
![[PokeCommunity.com] Sideways Stairs [PokeCommunity.com] Sideways Stairs](https://i.imgur.com/jRnha2N.gif)
Here is the repo. I've tried to make it as simple as possible to set up. In order to keep the number of additional tiles/metatiles as low as possible, 6 additional behaviors are added
- This way you only really need to add 6 more metatiles (3 per side) to your tilesets. You won't have to worry about arranging the tiles in a complex pattern, or making new tiles of grass/cave floors/etc with different behaviors.
- Left Side describes stairs that fall on the left side of a mountain (northeast/southwest movement)
- Right Side refers to stairs that fall to the right hand side (northwest/southeast movement).
Code:
#define MB_SIDEWAYS_STAIRS_RIGHT_SIDE 0x49
#define MB_SIDEWAYS_STAIRS_LEFT_SIDE 0x4A
#define MB_SIDEWAYS_STAIRS_RIGHT_SIDE_TOP 0x4B
#define MB_SIDEWAYS_STAIRS_LEFT_SIDE_TOP 0x4C
#define MB_SIDEWAYS_STAIRS_RIGHT_SIDE_BOTTOM 0x4D
#define MB_SIDEWAYS_STAIRS_LEFT_SIDE_BOTTOM 0x4E
The following spoiler details how the collisions/tile behaviors are arranged. The top/bottom behaviors are needed to prevent the player from walking up/down the outside of the stairs.
Spoiler:
![[PokeCommunity.com] Sideways Stairs [PokeCommunity.com] Sideways Stairs](https://i.imgur.com/WAC9Qp8m.png)
![[PokeCommunity.com] Sideways Stairs [PokeCommunity.com] Sideways Stairs](https://i.imgur.com/1HgbECZm.png)
Feature Notes:
- To make things simple and reduce the number of added movement actions, I've changed the facing directions for diagonal movement to left/right instead of up/down. So any scripts with diagonal movement will need to use lock_facing_direction and unlock_facing_direction if they didn't before
- SLOW_MOVEMENT_ON_STAIRS is defined in include/constants/global.h. Set it to FALSE to allow the player to move at normal speed on stairs
- The following tileset image can replace gTileset_General (palette 3), and includes the stair tiles used in the GIFsSpoiler:
Feature Changes:
- New movement actions are removed, and a new object event element is used to modify the object direction on stairs
How To Add:
- git remote add ghoul https://github.com/ghoulslash/pokeemerald
- git pull ghoul sideways_stairs
Bugs/Issues:
- The priority of the player/other objects on stairs can be messed up depending on how each party is moving. This may be corrected with clever stair collision tiles, though
- SLOW_MOVEMENT_ON_STAIRS does not include acro bike hopping/whatnot
- Please report any issues!
Credits:
- Spherical Ice/Pokemon Gaia for the tiles
Last edited: