Hello amazing friends. I have the simplest request to ask. I was wondering what script call has to be used in the conditional branch for into check of A, S, or D is being pressed as those buttons ate not available from the dropdown menu. I have a platform game that needs to check for when I am jumping and attacking using those keys.
Button A,S,D conditional branch
RPG Maker MV SupportI believe the correct script call would be:
Input.isTriggered('A')
I'm not sure, but you might need to also add a "keymapper" map to your game, which you can do by creating your own plugin (preferred) or modifying the game's base scripts (not recommended because it will be overwritten when you update versions). To do so, just write stuff like:
Input.keyMapper[65] = 'A';
Input.keyMapper[83] = 'S';
Input.keyMapper[68] = 'D';
You can get the correct list of codes from this helpful webpage. But just try the Input.isTriggered('A') first, and only if that doesn't work on its own will you need to work with the keymapper.
Input.isTriggered('A')
I'm not sure, but you might need to also add a "keymapper" map to your game, which you can do by creating your own plugin (preferred) or modifying the game's base scripts (not recommended because it will be overwritten when you update versions). To do so, just write stuff like:
Input.keyMapper[65] = 'A';
Input.keyMapper[83] = 'S';
Input.keyMapper[68] = 'D';
You can get the correct list of codes from this helpful webpage. But just try the Input.isTriggered('A') first, and only if that doesn't work on its own will you need to work with the keymapper.
Solved.
Thank you so much, you were tottaly on it.
Input.isTriggered('attack') worked.
Thank you.
Thank you so much, you were tottaly on it.
Input.isTriggered('attack') worked.
Thank you.
Original thread: https://forums.rpgmakerweb.com/threads/button-a-s-d-conditional-branch.76021/