How do I make copies of enemy act independetly?

Just started using Construct 2? Post your questions here

Post » Tue May 30, 2017 6:15 pm

Hello,

I'm trying to make a metrovania/platform game with several enemies of the same type. The problem is that they all shoot at the same time, and if I have one is looking for the right, all of them shoot in the same direction :(

Right now I'm comparing the position of the enemy with the player's, and if I don't kill one of the enemies behind me, all others will shot to the wrong side...

I've seen a lot of similar questions but none seemed to answer the question completely. already tried instance variable and for each, but they didn't work :(
B
12
S
3
G
3
Posts: 16
Reputation: 1,825

Post » Tue May 30, 2017 10:18 pm

Instance variables and for each do make instances individual.

Share your project, you must be doing something the wrong way.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Fri Jun 02, 2017 3:45 pm

Construct 2 is all about instance picking. I had the same problem with my side scrolling space shooter. All my basic orange enemies fired at the same time. I had to figure out how to get Construct 2 to pick them individually. It wasn't easy and I finally had to settle for what looked right. I ended up using a choose random on screen loop.

As for the firing the wrong way.. that sound like more of a bullet behavior issue. Make sure the speed is positive value for left-to-right and a negative for right-to-left.
Check out my completed games on the Arcade! Capt. Doe Save the Universe! & Clicker Wizard!
B
71
S
19
G
8
Posts: 640
Reputation: 9,701


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests