How do I make a new object behave independently?

Get help using Construct 2

Post » Sat Jan 30, 2016 10:52 am

It's kind of hard to explain the problem. Hopefully I'll be able to explain it properly.

Image

The enemy sprite is supposed to change direction (mirrored, not mirrored) according to the enemy's angle of motion. I'm using the bullet behavior to compare the angle of motion.

It's working good while i'm using one enemy object on the layout. But as soon as I create a new enemy, the new enemy sprite won't change direction independently. No matter which direction the new enemy object is moving, it will face the same direction as the first enemy object.

What am I missing or doing wrong here?

Been having similar problems before. And it frustrates me every time.
B
11
S
2
Posts: 23
Reputation: 788

Post » Sat Jan 30, 2016 11:03 am

The system compare expression doesn't pick..

All enemies with bullet-speed over 0 will react to the attached action, based on the direction of one of them..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sat Jan 30, 2016 11:07 am

LittleStain wrote:The system compare expression doesn't pick..

All enemies with bullet-speed over 0 will react to the attached action, based on the direction of one of them..


Ah! Thanks alot! I didn't think of that :( ..
Do you have any suggestion on what I should do / use instead?
B
11
S
2
Posts: 23
Reputation: 788

Post » Sat Jan 30, 2016 11:12 am

You could use "for each enemy" or use a system pick action..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sat Jan 30, 2016 11:25 am

LittleStain wrote:You could use "for each enemy" or use a system pick action..


It worked! Thanks!! :D
B
11
S
2
Posts: 23
Reputation: 788


Return to How do I....?

Who is online

Users browsing this forum: tetuan and 10 guests