Strange Trigger Once result

Get help using Construct 2

Post » Sat Feb 23, 2013 7:59 am

This is the code I'm currently using.



The code works perfectly until you get to the final enemy instance on the layout. The last enemy starts spamming the Startle sprite every time you hit it with your sword.

The sword collision event sets the EnemyAlert to 1 and includes all of the EnemyLOS actions you see above, but why would it work for all the other bad guys, and not the last one?
B
40
S
12
G
1
Posts: 532
Reputation: 4,147

Post » Sat Feb 23, 2013 10:11 am

For each Bad Guy should leave empty actions, then create subevent to for each, addo another condition trigger once and copy these actions.
B
99
S
35
G
29
Posts: 3,139
Reputation: 28,421

Post » Sat Feb 23, 2013 7:40 pm

Hmmm...when I do that, if there are 2 badguys on screen, one of them spams the Startle sprite even more. I tried adding a "BadGuy is on-screen" event, but that didn't seem to do anything.
B
40
S
12
G
1
Posts: 532
Reputation: 4,147


Return to How do I....?

Who is online

Users browsing this forum: farsen, lahbach, newt and 32 guests