How to move objects and then stand on them.

Hey, I'm very new to RMMV and this forum, but I've been using it like crazy the last few days. And likewise, as someone that has no prior game development knowledge, I'm hitting a lot of roadblocks for a lot of different things I can do. Most things I've found a video for, but I couldn't find one for this specific problem.

So I have a puzzle where you move a table to a location, then you have to stand on it to get an item on an upper shelf. I managed to figure out how to make the table move by turning it into an event and allowing each interaction to give you a choice between moving it up,down,left or right. So that part I got down. The issue is, once the table is in place, actually getting the character to stand on it.

Initially I was gonna add another event in the spot the table would need to be to stand on, which would then move you to a different map where you're already on the table, and then you could jump back down into the other map. Which would be janky in and of itself, but it'd work atleast. The issue with that is I can't just have an event in the spot where you need the table to be, cause you could interact with it without needing the table there.

The only way I could see that working, is if you could make an event in that spot that would become available once the event with the table is in that spot. Unless there's a much better way to do this all together.
If you need to make a new event available in that spot, you can use Switches. Here's how I did it:

Once the table is in place, turn on a Switch of your choice (In Event Command window page 1, choose "Control Switches...")
Then, in your table event, create a new page and tick "Switch" in the Conditions section. It should look like this:
Spoiler: Show screenshot
REWADS.png
Click OK to save your event and close the window.
What this does, is it makes the movable table disappear once it's in place.

After this, we need to make a new table appear - The one you can jump on.
Create a new table event in the spot where you want it to be. This time, the Switch condition will be ticked in page 1. Put whatever events you want there to make the player jump on it.

Essentially, you're gonna have two table events:
Table #1 is the table you can move, and table #2 is the table you can jump on.
Table #2 will be hidden and uninteractable at first, because it requires the Switch to be on.
When Table #1 is in place, you turn the Switch on, which makes Table #1 disappear and Table #2 appear.

Hopefully I understood the issue correctly and could be of help 🙂
Let me know if anything is unclear. I don't know your exact RMMV knowledge, so I didn't know if I should go into more detail or less ^^
After this, we need to make a new table appear - The one you can jump on.
You had the right idea, but there's no reason to make a second event 🙂

@Xavveina you have your table event that you've figured out how to move around the map. At the end of each movement, check its coordinates (Control Variables -> Game Data -> Character -> This Event -> Map X/Y).

Do a conditional branch so if the X and Y match the map location the table has to be at, it turns on a self switch.

Make a second event page with the condition of that self switch. Have it keep the same table graphic, trigger Action Button.

In the event code make a move route for the player - turn on Through then do a jump command of Y -1 (you could just move up one space, but the jump makes it look fancy).

Show all the stuff for interacting with the shelf.

Then jump back down and turn Through off. Set another self-switch on the table to a third page that looks like the table but has no code.
You had the right idea, but there's no reason to make a second event 🙂

@Xavveina you have your table event that you've figured out how to move around the map. At the end of each movement, check its coordinates (Control Variables -> Game Data -> Character -> This Event -> Map X/Y).

Do a conditional branch so if the X and Y match the map location the table has to be at, it turns on a self switch.

Make a second event page with the condition of that self switch. Have it keep the same table graphic, trigger Action Button.

In the event code make a move route for the player - turn on Through then do a jump command of Y -1 (you could just move up one space, but the jump makes it look fancy).

Show all the stuff for interacting with the shelf.

Then jump back down and turn Through off. Set another self-switch on the table to a third page that looks like the table but has no code.
The reason I suggested a second event is because, if you exit the map and return, table #1 will return to its original position. Or am I doing something wrong? :hswt:
I'd love to know how to do this without a second event, to be honest. Many of my maps are cluttered with events exactly because of that xD
The reason I suggested a second event is because, if you exit the map and return, table #1 will return to its original position. Or am I doing something wrong?
Oh. That's a good point! But there are plugins for that. Such as:

It's one of those things I'm so used to that I forgot it's not the default behavior 😅

So yes, feel free to unclutter your maps!
You had the right idea, but there's no reason to make a second event 🙂

@Xavveina you have your table event that you've figured out how to move around the map. At the end of each movement, check its coordinates (Control Variables -> Game Data -> Character -> This Event -> Map X/Y).

Do a conditional branch so if the X and Y match the map location the table has to be at, it turns on a self switch.

Make a second event page with the condition of that self switch. Have it keep the same table graphic, trigger Action Button.

In the event code make a move route for the player - turn on Through then do a jump command of Y -1 (you could just move up one space, but the jump makes it look fancy).

Show all the stuff for interacting with the shelf.

Then jump back down and turn Through off. Set another self-switch on the table to a third page that looks like the table but has no code.
WOW, this was more convoluted than I thought. Thanks for the tips. I messed with it for a while, and...I guess I was able to figure it out? What finally ended up working was NOT what I expected to work.

Table Help 1.png


This was the thing that ended up working. I only put them in the left option, cause you could only move it left to fit it in the intended spot. Was this actually what I was supposed to do, or was it just dumb luck that it somehow worked? XD

Table Help 2.png


This was the movement I did. I decided to make it to where jumping on the table just got you the item through the whole animation, you didn't have to click on it to pick it up, and you'd end up back on the ground next to the table, which all works...except one thing.

My player shows up under the table when it performs the movement. I can't seem to figure out a way to place him on top of it. There's also the fact that I would of loved someway to bring the character up like half a tile, so it looked more like he was actually on the table. No idea how I'd go about doing that.

But I'm honestly amazed I was able to get this far with it, so thanks for the help!
Umm, I haven't messed with this as much. Try making the event priority Below Characters.

I think it will still normally be impassable because its tileset image is impassable, but when you have Through enabled it will be below the character.

I think. Try it. If that doesn't help, we'll have to finagle more.

Worst case scenario, you do the move route with the jump and then turn the character invisible and change the table image to one you make in GIMP to have the character standing half a tile higher on top of it.
Umm, I haven't messed with this as much. Try making the event priority Below Characters.

I think it will still normally be impassable because its tileset image is impassable, but when you have Through enabled it will be below the character.

I think. Try it. If that doesn't help, we'll have to finagle more.

Worst case scenario, you do the move route with the jump and then turn the character invisible and change the table image to one you make in GIMP to have the character standing half a tile higher on top of it.
Tried it, but when I make it below the character, I can no longer activate the event. I'm definitely gonna have to finagle with this more.
Umm, I haven't messed with this as much. Try making the event priority Below Characters.

I think it will still normally be impassable because its tileset image is impassable, but when you have Through enabled it will be below the character.

I think. Try it. If that doesn't help, we'll have to finagle more.

Worst case scenario, you do the move route with the jump and then turn the character invisible and change the table image to one you make in GIMP to have the character standing half a tile higher on top of it.
FIGURED IT OUT!!! I split the two event pages. Having the first one ask if you wanted to jump on the table, and if you say yes, it activates the switch to the next page. The next page does have the priority below, along with all the animations as an autorun event.

Appreciate the help with this!

Original thread: https://forums.rpgmakerweb.com/threads/how-to-move-objects-and-then-stand-on-them.153111/