Crrate object – origin is not in the right spot

0 favourites
  • 3 posts
From the Asset Store
2D fighting template based in the game that defined the fighting games genre.
  • Hi everyone.

    I ran into a problem which i cant solve. I'm creating a simple shoot'em up for fun and I can get my bullets to keep spawning in the right place.

    When the player ship is right in the middle it works:

    (blue bullets coming from the middle of the player ship)

    However, when i move the ship to either side, it seems like to origin is not staying in the same place and the bullets keep spawning more and more to the side (towards center of the screen).

    The same happens on the right side too:

    It happens when i control the ship using both keyboard and touch. But it does not affect pinned objects (they stay pinned in the right spot all the time).

    Anyone know where the problem might be?

    Thanks for your help!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • May be caused by parallax or z-elevation. Are bullets spawned on the same layer with the ship, and with the same z-elevarion value?

  • That was it! Thank you! The Z elevation was different. You just saved me from a massive headache :)

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