Cloned objects issues with events

Get help using Construct 2

Post » Tue Nov 20, 2012 12:15 am

Hi everybody!

I have a enemy that is grabbing at someting and when the player is at certain distance(PlayerX>enemyX-200 && PlayerX<enemyX+200), the enemy fall of at the floor and starts to attack player, something like this:



But when the are multiple clones of the same enemy at the stage, all of them (including off screen) fall and attack at the same time, and I don't want the enemy do that. I need to fix it, because I think other enemies can cause troubles like this.
B
5
Posts: 10
Reputation: 595

Post » Tue Nov 20, 2012 12:27 am

Use "For Each" condition "For Each 'Enemy'" & is on-screen
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
71
S
19
G
19
Posts: 1,919
Reputation: 16,910

Post » Tue Nov 20, 2012 3:49 am

Thanks a lot! :3
B
5
Posts: 10
Reputation: 595


Return to How do I....?

Who is online

Users browsing this forum: Lof, YoHoho and 22 guests