Still cant get enemy AI to work properly.

Get help using Construct 2

Post » Thu Feb 06, 2014 7:21 pm

Hi, i posted a question around a week ago about enemy AI. Basically i wanted enemy to go towards me ( when I am left of him he goes left, when I am right of him he goes right, and when close enough he attacks me)

Well I did it like this
System/player.X<enemy.X/enemy stimulate platform pressing Left/
and vice versa.
It works only if there is one enemy (of the same kind) but when there is more then they all go right or lefthttp://www.scirra.com//forum/smileys/smiley19.gif.

Now my question is could i make that event for every enemy individually (without making enemy1,enemy2,enemy3 etc.)

Or is there a better way ?

If possible i would like capx but not necessarly of course.
Thank you in advance.
B
7
S
2
Posts: 102
Reputation: 975

Post » Thu Feb 06, 2014 7:27 pm

Add a condition to the compare event.

system for each enemy
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Thu Feb 06, 2014 7:48 pm

Thanks a lot.
THANKS A LOT LOT, man you are a life savior i didnt even know that exist(LOL).
B
7
S
2
Posts: 102
Reputation: 975


Return to How do I....?

Who is online

Users browsing this forum: digitalsoapbox, RetrocadeMedia, Yahoo [Bot] and 1 guest