Activate on/off enemy's instances - where goes "for each" ?

Get help using Construct 2

Post » Wed May 06, 2015 11:50 am

Hello,

I've created an enemy with custom movements. Since it always goes toward the player, I need to deactivate it when it's off-screen so it remains where it's placed and doesn't travel the whole level to meet the player.

What I did works well with only one instance, but with multiple instances, it goes crazy.....

I think I need to use the "for each" but really....can't figure out how to use it properly, I just seem to make things worse...

Image

Anyone know how to use it properly ? Many thanks if you can help !
Lunar Mission for Android & iOS
B
16
S
2
Posts: 44
Reputation: 1,365

Post » Wed May 06, 2015 12:28 pm

Ok finally got it to work.

Found out that the conditions else, trigger once & every X seconds were confusing the instances system. Seems to work so far without them (and without for each)

Here's my events if you're interrested:
Image
Lunar Mission for Android & iOS
B
16
S
2
Posts: 44
Reputation: 1,365


Return to How do I....?

Who is online

Users browsing this forum: lukewasthefish and 10 guests