JonathonA
Member
|
Character Movement
Hello there,
Started coding with Esenthel over the last few days and regarding character movement, how can I stop the engine from twisting the character when multiple movement keys are on (e.g. W and A or S and D etc) since it is not required in our game?
|
|
10-25-2011 05:41 PM |
|
Esenthel
Administrator
|
RE: Character Movement
please use custom "Chr" class basing on provided sources of "EE::Game::Chr" (available in company license)
with your own methods for handling animations
|
|
10-25-2011 05:43 PM |
|
JonathonA
Member
|
RE: Character Movement
I am doing that, in my custom class "Player" in an update() method:
...
input.move.x = Kb.b(KB_D) - Kb.b(KB_A);
input.move.z = Kb.b(KB_W) - Kb.b(KB_S);
...
The above code when handled by the engine is turning the character if multiple keys are pressed and I don't require that?
Is the above code causing the Game::Chr::angle vector to be set in some way?
This isn't an animation issue.
|
|
10-25-2011 05:51 PM |
|
Esenthel
Administrator
|
RE: Character Movement
I encourage looking into Game::Chr sources, investigating and modifying them
|
|
10-25-2011 06:07 PM |
|
JonathonA
Member
|
RE: Character Movement
Okay.
|
|
10-25-2011 06:12 PM |
|