Combining Sprites

0 favourites
  • 4 posts
From the Asset Store
A set of 10 pixel art animated magic effects with icons. 2 Fire, 2 Earth, 2 Wind, 2 Water, Portal, Explosion.
  • I need to make a space ship composed of multiple parts that work together. Is it possible to make several sprites that are attached and work together, rather than having the entire ship represented by a single sprite. I also need each part of the ship to have it's own health. I eventually want to make it so that multiple players can cooperate by controlling different parts of the ship.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • One sprite will be the 'base', the others attach to it.

    Use imagepoints on the 'base' sprite to mark where the parts sprite will be attached.

    To attach, use the pin behavior, or a simple 'set position of part sprite to imagepoint on base sprite' every tick.

    For easy creation and simple picking, bring base sprite and sprite parts in a container.

    Each instance of a sprite has individual instance variables.

  • You can use the pin function to do this. You have the hull of your ship then you pin all the other parts on it.

    construct 2 manual

    Subscribe to Construct videos now

    You pin different objects to your ship hull, each object can have different HP.

    For the multiplayer part I don't know but I think that it should work.

    (Edit I was ninjad but there are links if you need.)

  • I used the "set position to object image point", but there's a problem. The ship part connects at its origin point. Do I need to move the origin point, or can I make it attach at another point. I'll just move the origin point for now.

    ... I got the parts to attach to the right points, but now they don't move properly. When the main body of the ship turns, the other parts maintain their original orientation, rather than turning with the body.

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