Hey. I want to change the sprite of the player AND the follower allies when climbing a ladder. By default RPG Maker only changes the facing position.
I can make it with a touch event, but this changes all the sprites at the same time when only the player is on the ladder.
I found a couple of Follower Control Plugins but I couldn't find the way to make it work.
Thanks :ehappy:
This is a lot more difficult that you think it is due to the way how the followers work.
Because the followers simply step into past coordinates where the main party had been and have no way to identify what that past position had been.
This problem becomes more obvious if you have the party leader step on and off the ladder repeatedly.
The only way this can work at all would be with a plugin monitoring all ladder-flagged tiles and switch the sprite based on that. And I don't know of such a plugin, so you will probably have to request or commission that.
Yeah, I figured it is not simple. Thanks though.
RPGM can tell when the follower is on the ladder so maybe there is something there.
I might have to request a plugin, perhaps a kind soul will help me.
I do something similar in my game with a parallel event and regions and a switch. Paint the ladder tiles with a region, let's use ID 1. Set up a parallel event.
In that event use control variable and set it to players region ID.
Then a conditional branch with else checked. Conditional branch checks if region ID =1.
-Then inside that conditional is another conditional branch, if SWITCH: ladder is off then: gather followers, change graphics using change actor graphics command, turn on SWITCH: ladder.
Back to our first conditional branch's ELSE branch:
-Put another conditional branch, if SWITCH: ladder is on then: gather followers, change actor graphics command (back to original graphics), turn off SWITCH: ladder.
Put a short wait, I used WAIT: 5
TL;DR:
Basically you're just tracking players region, if correct region and swicth is off: change graphics, turn on switch.
If not and the switch is on: Change graphics back, turn switch off.
switch is important to prevent the graphics change over and over.
Sorry for poor formatting, I am on mobile and not near my desktop. Hopefully this will give you insight into how to construct your own version for your needs.
Good luck.
You can do that script call and eliminate the need to track player region. Just check if isOnLadder is true, change character graphics, flip switch. I maybe wrong but I think the script call would look something like "$gamePlayer.isOnLadder();"
I'm tracking regions for other things using this system, so for me, it wasn't an issue. Additionally I have different sprites based on if the player is on a "ladder" / "rope" / "rockwall" / "swimming" etc that are just marked by regions and 1 common event so it can be modular.
Good luck, happy game making.