..im pretty sure that this was asked before,but how can i redefine the keys in the a5 templates?i want it so that i should press the W,S,A,D keys when moving instead of the arrow keys.thank you.
Re: ..redefining the keys in the template
[Re: AdrianX]
#121745 04/06/0723:5304/06/0723:53
Quote: ..im pretty sure that this was asked before,but how can i redefine the keys in the a5 templates?i want it so that i should press the W,S,A,D keys when moving instead of the arrow keys.thank you.
The answer lies in input.wdl
though this may not be the best way but it works took me 2 minutes...
look for function player intentions:
modify like this:
Code:
// Set the cartesian forces according to the player intentions //force.X = strength.X*(KEY_FORCE.Y+JOY_FORCE.Y); // forward/back force.X = strength.X*(KEY_w-KEY_s+JOY_FORCE.Y);
This just uses the W and the S key for forward and back but surely you can manage the A and D key..
Also there is a script somehere that lets you and end-user define all keys...
I'll look for it if you like; though it is most likely A A5 engine script and the syntax would be a little different.
..hmmm..i think this should work fine. ..its been a while since ive done anything with 3dgs,but now that im back,expect to see questions like this a lot more often now. ..thank you!