Heya guys,
I've been fooling around with Brisby's KeyboardMovement Module and having some fun with it. Being able to have the character moving into a crouching position and moving in that position. But I'm wanting to do a roll function in this game I'm working on. I have the space button set up and read to go, but I was just wondering if there is a form of code I can use where every time I hit this button the character will roll lets say 40 pixels right (for now)
this is the code I've gotten so far
else if (newdirection == eKeyboardMovement_Action1) {
cCharacter.ChangeView (3);
cCharacter.StopMoving ();
cCharacter.SetWalkSpeed(8, 8);
cCharacter.Move(+40, 0);
cCharacter.StopMoving();
cCharacter.SetWalkSpeed(4, 4);
The main issue I already know is the cCharacter.Move and alot of the codes you have to have a set x,y. Surely there is a way to do and is most likely reeeeeally simple. Just wondering if anyone could point me in the right correction. Hopefully this makes sense
Cheers.