Page 1 of 1

patrol enemy after third time collision

PostPosted: Sat Jul 23, 2011 4:02 am
by raminjoon
ok I got a character who I can punch for three times in its face I want it to start moving on x-axis and patrol. how?

Re: patrol enemy after third time collision

PostPosted: Sat Jul 23, 2011 8:02 am
by savvy
ok, so you want it to move after punched.. use a variable to control if patroling is available, when you punch it a variable goes up, then in draw actor put the whole patroling function into an if... as so..
Code: Select all
if(variable>=3)
{
do stuff...
}


savvy