I recently purchased Rayman 2 from GOG.com. The game is old and thus does not give the option to remap keys, and I'd like to make them a little closer to what we're used to today.
Basically, I want normal movement with WSAD, jump with space, and shoot with left mouse click. Also, I'd like the keys to only be remapped when the Rayman window is active. I created the below script, but it does not work correctly.
This is the first time I've ever worked with AHK, so I'm not sure what to do. How can I correctly configure the script?
Here's what happens with this script active:
- Script is active whether Rayman is open or not, let alone whether the window is active. (The window name can either be
Rayman IIorRayman2.) - W: moves forward and turns camera to the right
- S: works as intended
- A: moves left and jumps
- D: works as intended
- LButton: works as intended
- space: shoots and jumps
The script itself:
IfWinActive, Rayman2
{
w::up
s::down
a::left
d::right
space::a
LButton::space
}
