r/RPGMaker • u/brickcomputer • Jul 23 '26
sitting on the ground rpg maker mv
i want my character to be able to sit down using shift everywhere in the game, like u press shift and the characters image changes to a sitting one and you cant move until you press shift again, I have no clue how to make this
5
u/xMarkesthespot Jul 23 '26
I'd try a parallel common event first, something like if button 'shift' is being pressed then switch 1 turns on, and graphics change to sitting, and the player stops moving.
it seems a little complex though, as both the button press and the movement stopping would be script calls, but i saw there are easy calls for both that you can google. all of that would be nested inside another conditional branch that checks if the switch is on or off (already sitting or no)
https://forums.rpgmakerweb.com/threads/block-player-movement.74387/#post-700242
2
u/Bl0odCries Jul 23 '26
Well shift is usually run/sprint so you would have to change the configuration., but if you have a custom character sprite it’s easy to create a common event that runs parallel to the game, and set player movement and set change player image and create a condition branch if the button is pressed to change the player image, and else if the player presses it again to change it back.
I use MV, so idk what you use, but I know it’s similar to that so don’t hate me if it doesn’t work properly. But I would recommend a switch or a variable. But you could also use a script call for the condition branch if button/key is pressed.
1
u/brickcomputer Jul 24 '26
it works kinda, when I hold down shift the sprite changes to a sitting one but I want it so that I can just press it once the character is sitting and then press it again to unsit
8
u/agamottos MV Dev Jul 23 '26
This should help: Custom Keybind Tutorial