Sprites not staying pinned when on path

Get help using Construct 2

Post » Sat Dec 14, 2013 11:56 pm

I have a top down game where each enemy is made up of several sprites, and the enemies follow a path based on one of the waypoint tutorials.

I'm facing the following issues and not sure what is causing them:

1. The z-order of the sprites pinned to the enemy sprite seem to change randomly

2. Pinned objects randomly disappear

3. Pinned objects (enemy legs and head) seem to detach from the enemy sprite and when this happens none of the events relating to enemies execute any longer (e.g. dying after colliding with player sprite).

CAPX: http://www.filedropper.com/pintoenemywithwaypoints

Thanks in advance
B
5
S
1
Posts: 44
Reputation: 665

Post » Sun Dec 15, 2013 12:43 am

Hello!
I think "Container" is the answer.
Something like THIS might fix it! :) ( Hope my comments are understandable :P )
And here's a manual on Containers.

Cheers,
George
B
17
S
5
G
1
Posts: 74
Reputation: 2,647

Post » Sun Dec 15, 2013 2:07 pm

That works well. Thanks. I didn't use containers initially because destroying sprites in one destroys the sprites in all other instances, but making the unwanted sprites invisible is a good workaround. Hopefully it won't impact performance too much.
B
5
S
1
Posts: 44
Reputation: 665


Return to How do I....?

Who is online

Users browsing this forum: Magistross, mtnboy22, Rable and 6 guests