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
22
S
3
Posts: 451
Reputation: 2,135

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
96
S
25
G
20
Posts: 3,055
Reputation: 22,644

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
22
S
3
Posts: 451
Reputation: 2,135


Return to How do I....?

Who is online

Users browsing this forum: armaldio, plinkie and 19 guests