About Store Forum Documentation Contact



Post Reply 
Character Movement
Author Message
JonathonA Offline
Member

Post: #1
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
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #2
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
Find all posts by this user Quote this message in a reply
JonathonA Offline
Member

Post: #3
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
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #4
RE: Character Movement
I encourage looking into Game::Chr sources, investigating and modifying them
10-25-2011 06:07 PM
Find all posts by this user Quote this message in a reply
JonathonA Offline
Member

Post: #5
RE: Character Movement
Okay.
10-25-2011 06:12 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply