How do I spawn an object at the edge of my object?

0 favourites
  • 3 posts
From the Asset Store
On the Edge is a puzzle game where you have 40 levels to have fun with.
  • I have a turret that on shoot should spawn cones, that shoot at the enemies. By default, when creating a new object at it's place, it is being created at the center of the turret.

    As you can see, this looks really dumb:

    I would want something like that:

    Therefore I need to shift the position of the cone to the edge of the "front" edge of the turret. (The edge it turns to the enemy.) I tried to do so with some Maths, but I failed badly (geometry isn't my strength after all). Is there a possibility to tell Construct to not spawn it in center, but rather at the edge of the other object?

  • Create a new image point in the turret sprite. And spawn bullets at this image point.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have a turret that on shoot should spawn cones, that shoot at the enemies. By default, when creating a new object at it's place, it is being created at the center of the turret.

    As you can see, this looks really dumb:

    I would want something like that:

    Therefore I need to shift the position of the cone to the edge of the "front" edge of the turret. (The edge it turns to the enemy.) I tried to do so with some Maths, but I failed badly (geometry isn't my strength after all). Is there a possibility to tell Construct to not spawn it in center, but rather at the edge of the other object?

    Like dop2000 said, click on the sprite and open the image editor and add a new imagepoint to the sprite, hold shift and click where you want it to be(holding shift will add a image point to all frames in the animation)

    After that you just PIN or CREATE the object on that imagepoint that you created.

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