Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Changing the control scheme

R.J.

Member

Is there a way in RPG Maker XP to change the control scheme? I mean, for example when you play a game, you move around by using the arrow keys. But, on my keyboard, the right arrow key is broken, so I can't move to the right. Now I would like to change this button so that I can move to the right using another key instead of the right arrow key.

Is this possible?
 
I think so. There is a command in RGSS that goes like this: if Input.trigger?(Input::KEY LETTER). So you could re-route the character's movement to another key using that. It is very limited, however, so you would need a script like cybersam's or Awork's extensors, which enable you tou use all keys in the keyboard.

From there it would just be hunting down the movement routines and hacking them a bit. I don't know where they are, but somebody here surely does.
 
Yeyinde, he wants to change directional keys. There is no option in the F1 prompt of XP for that.

Anyway, R.J., you will need a bit of scripting, but it should be very easy for somebody who knows the engine well to pull it off. I would suggest posting a script request... it shouldn't take the scripter more than 10 minutes.

I assume there is a way to do this through events, but I'll assume it's too much bother.
 

Kipe

Member

Conditional branch, key (whatever) is being pressed
Set Move Route: Move up (ignore if can't move)
else
Conditional branch, key (whatever) is being pressed
Set Move Route: Move down (ignore if can't move)
else
Conditional branch, key (whatever) is being pressed
Set Move Route: Move left (ignore if can't move)
else
Conditional branch, key (whatever) is being pressed
Set Move Route: Move right (ignore if can't move)
end

It should be easy enough to change ←, ↑, →, ↓, to W, A, S, D.
http://rmrk.net/index.php/topic,34335.0.html
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top