Make complex multi-object enemies work when theres multiple?

Get help using Construct 2

Post » Wed Sep 23, 2015 4:44 pm

Here's my dilema that I'm sure everyone who's made a complex NPC has had in their time.

Initial sprite gets destroyed, spawns a new sprite and a rotate point sprite.

Sprites start rotating around that rotate point.

It works perfectly fine.


Add a second enemy. Kill the first one. Destroy behavior works as intended and now the sprites are rotating around the rotate point sprite.

Kill the second enemy. Now it wants to rotate around the rotate sprite but instead of rotating around the newest rotate sprite it rotates around the first one. Screwing up the intended effect.
B
21
S
5
Posts: 109
Reputation: 1,500

Post » Wed Sep 23, 2015 6:02 pm

So what you have is a picking problem?
I'v never worked with a "rotate sprite" or anything like that, not even sure what it is..

Is there any way to tell the rotate sprites apart?
for example by adding a variable to both the sprite and the rotate sprite and checking that..
I'm guessing the multi-object enemies have some way for the multi-objects to know they belong together, couldn't that be used?
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


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 21 guests