patrol enemy after third time collision

Talk about making games.

patrol enemy after third time collision

Postby raminjoon » Sat Jul 23, 2011 4:02 am

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?
raminjoon
 
Posts: 40
Joined: Tue Jul 05, 2011 5:34 am
Location: Denver, Co.
Score: 3 Give a positive score

Re: patrol enemy after third time collision

Postby savvy » Sat Jul 23, 2011 8:02 am

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
--> For my help, i ask for a simple +1 if it helps! ^-^
--> I dont code, I type art which you dont understand.
--> I keep winning the 3D model challenge at college, teacher says: "you keep winning im not giving you prizes".
User avatar
savvy
 
Posts: 494
Joined: Wed Jun 03, 2009 11:55 am
Location: England
Score: 44 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest