- Joined
- Feb 7, 2019
- Messages
- 19
- Reaction score
- 4
- First Language
- english
- Primarily Uses
- N/A
need help on a Ship system where the player can enter inside the ship with a map
Yes the ship can wander in a single overworld map. While on ship and if the player presses a certain button the player transfers in a map that is inside the ship so he could do stuff like talk to NPCs check whats inside and also If the player is done checking the player moves to a door and returns on the overworld so that he could control the ship.is the ship only available on a single world map, or does it transfer through different maps?

Only getting inside the ship works but when i go outside to control it the player is stuck in the ship's position cuz if the command get on/off vehicle is applied on an sea type vehicle it needs to be one step further away from it not in the same position to get in and ride the vehicle. I tried moving the player by 1 tile when transferred outside but it extends like 10 tiles and my player is stuck in the ocean.OK, that makes it even simpler - I thought you had something more complex in mind.
but for that, you only need to have a button-controlled teleport event on that one map.
you'll need three variables for the transfer command, and then
View attachment 170681
and on the shipmap the transfer back uses the three variables given to get the player back to the position where he came from.
two important points:
1) you might have to adjust the wait command. More frames mean less lag, but the button reacts slower. Less frames mean more lag, but the button reacts smoother and faster.
the correct number depends on what else is going on on that specific map, so 5 frames is only a guess and needs to be corrected after playtests.
2) you might have to add some more commands to leave the ship, or you would sail through the ship cabin, but I'm short on time and can't test those out at the moment, sorry