AI...so frusterating

Game Editor comments and discussion.

AI...so frusterating

Postby J Maker » Fri Jun 22, 2007 4:57 pm

hey sorry but i know this has been asked about a bagillion
but i need some codes so that my boss actor moves towards my player and changes animation when he is walking left and right but he always stays on tha ground so can anyone help me? ',:|
Some people believe Chuck Norris evolved from a dinosaur, the Chucknorisaurus.
----------------------------------------------------------------------------------
Chuck Norris doesn't sleep, he waits.
----------------------------------------------------------------------------------
Chuck Norris doesn't hunt, he kills.
----------------------------------------------------------------------------------
Chuck Norris once shot down a german fighter plane with his finger by yelling BANG!!!
----------------------------------------------------------------------------------
User avatar
J Maker
 
Posts: 177
Joined: Fri Jun 22, 2007 4:17 pm
Location: in the stick version of Hyrule
Score: 10 Give a positive score

Postby Caaz Games » Fri Jun 22, 2007 5:00 pm

The way i did it is like This
[] = zones
8 Boss

[___]8[___]

One would trigger left on a collision event with the player actor.
other would be reverse.
You are welcome to join my forum. 4 active members lol but it's a cool place. active... much talking :D it's fun!
http://caaz.freeforums.org/
User avatar
Caaz Games
 
Posts: 729
Joined: Wed Feb 14, 2007 9:09 am
Location: California....knows how to party!
Score: 25 Give a positive score

Postby Oman » Fri Jun 22, 2007 5:04 pm

ok, here u go :)
put in enemy, collision wit top side of ground, reapeat wile colliding no,
and put the enemy starting above the ground, and give him "gravity"

if (xvelocity > +0.00001)
{
right animation
}

else if (xvelocity < -0.00001)
{
left animation
}
Last edited by Oman on Fri Jun 22, 2007 5:05 pm, edited 1 time in total.
"Beyond a wholesome discipline, be gentle with yourself." - Max Ehrmann
User avatar
Oman
 
Posts: 268
Joined: Tue Oct 31, 2006 4:00 am
Location: Somewhere out there...
Score: 6 Give a positive score

Postby J Maker » Fri Jun 22, 2007 5:05 pm

The way i did it is like This
[] = zones
8 Boss

[___]8[___]

One would trigger left on a collision event with the player actor.
other would be reverse.
ok so: [___] is a filled region?
i think i get it! :D thx ill try it
Some people believe Chuck Norris evolved from a dinosaur, the Chucknorisaurus.
----------------------------------------------------------------------------------
Chuck Norris doesn't sleep, he waits.
----------------------------------------------------------------------------------
Chuck Norris doesn't hunt, he kills.
----------------------------------------------------------------------------------
Chuck Norris once shot down a german fighter plane with his finger by yelling BANG!!!
----------------------------------------------------------------------------------
User avatar
J Maker
 
Posts: 177
Joined: Fri Jun 22, 2007 4:17 pm
Location: in the stick version of Hyrule
Score: 10 Give a positive score

Postby Caaz Games » Fri Jun 22, 2007 5:06 pm

Correct
You are welcome to join my forum. 4 active members lol but it's a cool place. active... much talking :D it's fun!
http://caaz.freeforums.org/
User avatar
Caaz Games
 
Posts: 729
Joined: Wed Feb 14, 2007 9:09 am
Location: California....knows how to party!
Score: 25 Give a positive score

Postby J Maker » Fri Jun 22, 2007 5:22 pm

ok, oman i that code just for chnging animations then? and cool im right at something :D
Some people believe Chuck Norris evolved from a dinosaur, the Chucknorisaurus.
----------------------------------------------------------------------------------
Chuck Norris doesn't sleep, he waits.
----------------------------------------------------------------------------------
Chuck Norris doesn't hunt, he kills.
----------------------------------------------------------------------------------
Chuck Norris once shot down a german fighter plane with his finger by yelling BANG!!!
----------------------------------------------------------------------------------
User avatar
J Maker
 
Posts: 177
Joined: Fri Jun 22, 2007 4:17 pm
Location: in the stick version of Hyrule
Score: 10 Give a positive score

Postby Oman » Fri Jun 22, 2007 5:23 pm

yep, isn't that what you wanted?
"Beyond a wholesome discipline, be gentle with yourself." - Max Ehrmann
User avatar
Oman
 
Posts: 268
Joined: Tue Oct 31, 2006 4:00 am
Location: Somewhere out there...
Score: 6 Give a positive score

Postby J Maker » Fri Jun 22, 2007 5:36 pm

:Dyep
Some people believe Chuck Norris evolved from a dinosaur, the Chucknorisaurus.
----------------------------------------------------------------------------------
Chuck Norris doesn't sleep, he waits.
----------------------------------------------------------------------------------
Chuck Norris doesn't hunt, he kills.
----------------------------------------------------------------------------------
Chuck Norris once shot down a german fighter plane with his finger by yelling BANG!!!
----------------------------------------------------------------------------------
User avatar
J Maker
 
Posts: 177
Joined: Fri Jun 22, 2007 4:17 pm
Location: in the stick version of Hyrule
Score: 10 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron