having problem with "for each"

Get help using Construct 2

Post » Sun Jul 29, 2012 3:12 pm

I'm trying to make an enemy react to specific situations, and with 1 enemy it works perfectly... but now i'm trying to add more enemies into the game and it works terrible...

I've made other minigames like this and I've managed to make each entity behave independently... and I don't understand why this isn't working here.

Right now what the enemy can do is (when there is only 1):
0 spawn from "trigger". (so in order to make more mobs, you only need to make more triggers, it's important)
1 when too far, it gets closer
2 if close enough and you're in sight, it shoots at you.
3 If it can't see you, it wonders around
4 it doesn't get stuck in obstacles.


https://dl.dropbox.com/u/20613220/mob_behavior.capx

help -_____-'
B
42
S
11
G
5
Posts: 446
Reputation: 6,417

Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, LeFuji, plinkie, Radulepy and 0 guests