Same Graphics for multiple objects

Get help using Construct 2

Post » Sat Jun 08, 2013 3:37 am

Consider a beat-em-up like Double Dragon, Streets of Rage, or River City Ransom.

Imagine an enemy type, say "Whip Girl", who also spawns with a whip (that other enemies use too). Of course, I'd be tempted to make a whip object, and add it to a container for whip girl, because that enemy always spawns with the whip.

But let's say that if you defeat a whip girl, she drops the whip, and the player can start using that whip.

The problem is that it appears that an object can only be part of one parent container.

Is there a better way than to either make a whip sprite, a whipgirlwhip sprite, a playerwhip sprite, and assign them to their respective parent objects,
or to have one whip sprite and try and keep track of all the instances on screen with their proper z indexes?

I'm assuming I can't just have one whip sprite that can belong to both whipgirl and player?
Posts: 55
Reputation: 807

Post » Sat Jun 08, 2013 4:57 am

Hey Canned,

There are other ways to pin objects in place if you didn't want to use containers, the pin behaviour for example :)

If the whip will be changing hands often that's what I would do.

Posts: 1,100
Reputation: 14,319

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 61 guests