Creating objects aside other objects...

This forum is currently in read-only mode.
From the Asset Store
Hand-painted tiles, objects, animated objects, and background to build a colorful Mayan civilization environment.
  • and binding their movements together?

    My idea is to create a basic shooter with a "growning" space ship. Just imagine the spaceinvaders sprite, made of big squares or blocks. Once an enemy is destroyed, could spawn one of those blocks and the player should be able to catch them and add them to his ship. The new block should be spawned at the right coordinates and move together with the ship.

    Any idea of an elegant way to do it?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The custom movement behavior has a movement called "restrain distance from object".

    It doesn't work well with chains, but you can have multiple instances "slide", or "bump" off of each other.

    Edit:

    Keep in mind that will only place them a certain distance, and doesn't take angle into account.

    To set it at a certain position while keeping the same angle as the ship you could also try image points.

  • Thank you for the suggestions. In the end, i did it with image points and variables to understand if the block is attached and which kind of block it is (gun, armor, thruster). Unfortunately, it didn't work very well and i scrapped it from the design (it was for a project at university so i just had to produce something quickly, avoiding cool but time-eating features).

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