Issue with patrolling enemy

Just started using Construct 2? Post your questions here

Post » Thu Aug 13, 2015 7:34 am

Hey!

So I'm just getting going with everything and have made a a patrolling enemy using this tut:
https://www.scirra.com/tutorials/828/ad ... ies/page-3

He works great but I noticed that when I clone him around that the edge detector triggers movement in all of the enemies and causes them to spin back and forth like the Tasmanian Devil.
I tried making the object containers for each other but that hasn'y solved the problem.

Sooo I tried my hand at this tut to remedy the issue:
https://www.scirra.com/tutorials/253/ho ... ame/page-7

However, I'm getting this problem now:
Image

Can someone let me know what I'm doing wrong here?

Thanks in advance!!
B
71
S
41
G
24
Posts: 356
Reputation: 18,464

Post » Thu Aug 13, 2015 9:06 am

Your else is indented one too many. If you look at your events, there is no condition on the same indent level.
My tutorial through development blog is at http://myconstruct2dev.blogspot.co.uk/
B
12
S
3
Posts: 221
Reputation: 1,328

Post » Thu Aug 13, 2015 7:15 pm

paulscottrobson wrote:Your else is indented one too many. If you look at your events, there is no condition on the same indent level.


Thanks so much! I finally figured out what was going on!
B
71
S
41
G
24
Posts: 356
Reputation: 18,464


Return to Beginner's Questions

Who is online

Users browsing this forum: MadSpy and 0 guests