Same Graphics for multiple objects

0 favourites
  • 2 posts
From the Asset Store
Over 1700 16x16 pixel art RPG icons for item and skills
  • 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?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)