How do I apply my AI to every enemy?

Get help using Construct 2

Post » Thu Sep 24, 2015 12:30 pm

I've made a system to make the enemy follow my player on a 4direction movement base and avoid walls, it works ok for 1 enemy but as soon as I try to clone it and add some others bad guys, things get messed up.

Here's my capx https://dl.dropboxusercontent.com/u/55828593/simpleAI.capx if anyone can help.
B
10
S
4
G
1
Posts: 31
Reputation: 1,409

Post » Thu Sep 24, 2015 12:40 pm

Hello

Your global variable "dir" should be an instance variable of the ennemy sprite to be unique to each ennemies
B
13
S
3
G
4
Posts: 72
Reputation: 3,455

Post » Thu Sep 24, 2015 12:52 pm

thanks, how I missed that >_<
B
10
S
4
G
1
Posts: 31
Reputation: 1,409


Return to How do I....?

Who is online

Users browsing this forum: lukewasthefish and 10 guests