Page 2 of 2

Re: 4 Direction Attacking System

PostPosted: Sun Oct 07, 2012 7:54 am
by skydereign
DrakeStoel wrote:but it still stays in the stab animation until I let go.

Don't have your keydown event be set to repeat.

You could use the two frame thing, it is a common fix to gE's animation finish event being triggered at the start of the last frame. You could also create a timer when you attack. That way the timer event has the switch statement.

Re: 4 Direction Attacking System

PostPosted: Sun Oct 07, 2012 9:41 am
by DrakeStoel
I'm not sure on when to create the timer, or what it's function should be.

EDIT: No wait. I figured it out! Just put a timer on the view. Thanks for your help guys!

Re: 4 Direction Attacking System

PostPosted: Sun Oct 07, 2012 3:01 pm
by Soullem
to make him stop moving you can add an if statement with a variable around your movement called CanMove.
Code: Select all
if (CanMove==0)
{
//Movement Code
}


Then on your attack button down set CanMove to 1.
And on Attack button up set it to 0