Changing player actor image on ladders

Hi there,

I'm trying to figure out the best way of changing the player's actor image while using a ladder.

Ideally, from the moment they step onto the ladder tile until they step onto another tile that's not a ladder, I want the actor to use their ladder climbing image.

I've thought of a few ways of doing it, but they each have their individual problems.

My first thought was just to have player-touch activated events that change the player to the necessary image on the outsides of the ladder, as well as another event right next to it to change the player back to the normal image should they get off the ladder.

This is difficult for small ladders...

Then I tried running a conditional branch to see if the player had a certain button pressed down, which sort of works, but is still difficult for short ladders, and introduces problems if I already have some other event on the relevant tiles for other purposes. It also ignores mouse input, so there goes that idea.

Any other thoughts?
There's an automatic ladder setting for tilesets, are you using that already and it's glitching? If not just select them as a ladder tile in a similar way you can set passthrough in the tile set editor in the database.

Edit: I just tested that ladder mode myself having not tried it before and that ladder setting doesn't work like I thought it would at all. So apologies that won't help.

Seems pretty useless as instead of locking a player to face up even when going down it just makes you look up then down again quickly on each ladder tile.

My RM2K game used something similar to your on touch event system as I always had long enough ladders or ropes to make that system work.

Maybe you could have the player jump up if the ladders are that that short? Or just extend the ladders a bit higher so the on touch systems can work?

Edit: You could also use try Yanflys' common event on region tile touch plugin so that way no matter how small a ladder you could set a region for the ladder tile and not need any events on the ladder, just one at the bottom or top to switch the graphic back. I think that'd work but haven't tested it.
The ladder flag should do what you want, and @RPGMaker777 it should NOT cause the player to look into another direction while being on a ladder.

I can only assume that there is a problem in your engines (probably caused by a plugin) if it does not force the actor to constantly look up while being on a ladder.
Hmm, thanks for pointing that out Andar, you've potentially saved me some confusion later on, much appreciated.

Well at least I found out about it now, I'll just have to disable the in-game ladder functionality and use on touch event or a common event region tiles using Yanfly's plugin.
The ladder flag should do what you want, and @RPGMaker777 it should NOT cause the player to look into another direction while being on a ladder.

Sorry if this counts as butting in given that it's not directly related to ops question, but I was curious and tested this for myself on a brand new project in 1.5.0 and you can turn around on the ladder.

@RPGMaker777 what version of MV are you running? Could you test it on a blank project and tell me if I'm going crazy? 😅

I had a think about the original q too. Without testing anything, I'm wondering if using player location would work? E.g. you have a parallel event storing the players x and y into two variables. When the player is at the ladder co-ordinate, you run a conditional branch to change the event graphic, else, if they're not at that location, it's set to be the normal event graphic (to make sure once they get off the ladder, it resets to walking)
Thanks for the responses but whoa, that got off in the wrong direction fast.

I literally want to change the sprite of the player temporarily because I have my own ladder-climbing sprite, which is different than the walking sprite facing up.
The same rules still apply, you either make bigger ladders or use Yanfly's common event on region plugin, it's all easy to set up. You can assign common events to regions on player touch which you can make specifically for ladders.

http://yanfly.moe/2015/10/19/yep-17-region-events/

Original thread: https://forums.rpgmakerweb.com/threads/changing-player-actor-image-on-ladders.80105/