How do I prevent bullets from vanishing

0 favourites
  • 3 posts
  • Hello,

    I just started to play with Construct 2 and have ran into a rather odd problem.

    I made a basic space game using the (ghost)tutorial, and was playing around with it, trying to make a scrolling stars background via parallax with two layers of stars moving at different speeds.

    Now instead of hitting a wall at the edge of the map, the ship keeps on going and going and can only shoot in certain parts of the map.

    I am not sure what went wrong.

    I would like to contain the ship is a decent sized box and let the ship actually shoot in all spots of the world.

    Any suggestions on what I did wrong?


    (I am aware the score is broken and so is the player health :P)

    file is located here

    <img src="smileys/smiley18.gif" border="0" align="middle" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You have 'unbounded scrolling' turned on in the layout properties so you can keep moving outside the layout for ever. And the bullets have the DestroyOutsideLayout behaviour which is why they disappear instantly when you're outside the layout.

  • A million thank you's!

    I knew I missed something simple!

    The tutorial mentioned that it will track a bullet forever. So I guess setting bullets to be destroyed after traveling 2000 units would prevent this from happening and prevent me from using the DestroyOutsideLayout?

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