Bullet problem

0 favourites
  • 9 posts
From the Asset Store
This pack contains 10 types of bullet effects, with different shapes and colors.
  • I have created object with bullet behavior. It spawns in special point in characters sprite, but when I go further into the level the spawn-point of the bullet moves. So in the end of the level I can't even see the bullet. Is there a way to fix it?

  • Try and work out where it's spawning from

  • I checked, it spawns from the special point in my characters sprite, but it moves on its own and faster than character. Actually all character points move including root point.

  • So the bullet is moving too slow or what's the problem? We can't really see what you're referring to.

  • Let me draw a scheme to be clear:

    P - player

    b - place where bullet spawns

    Start of the level:

    _Pb_______

    Middle of the level:

    _P_____b__

    But when I go to start bullet spawn position goes back to normal.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hmm. Sounds like something is up with the spawning code. Could you post a link to a screenshot of your code where you spawn the bullet?

  • It might be the "create object on layer 0" that is the problem.

    Do you have multiple layers in your project?

    Layer 0 would be the furthest layer usually for backgrounds and such. If layer 0 has any scrolling settings changed, then this would explain why your bullet moves at different speeds depending on how far the screen scrolls.

    Either create the bullet on a different layer (instead of layer 0, you could do it on player.layernumber) or you might need to click on layer 0 on the layers window, and change the scrolling settings back to 100% x 100%

    I'm taking a guess from the info we have so far, so I may be incorrect!

  • Oh. Sorry, its my bad, I messed up with layer order. Thank you all anyways!

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