How do I prevent bullets from vanishing

Get help using Construct 2

Post » Fri Jun 15, 2012 7:31 pm

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?

Thanks!
(I am aware the score is broken and so is the player health :P)
file is located here
https://www.dropbox.com/sh/xke8tygcoafgd3w/oQw_T4IEnD/
StubyHobo2012-06-15 19:47:38
B
2
Posts: 2
Reputation: 379

Post » Fri Jun 15, 2012 8:03 pm

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.
B
54
S
28
G
18
Posts: 1,520
Reputation: 25,020

Post » Fri Jun 15, 2012 9:06 pm

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?
B
2
Posts: 2
Reputation: 379


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 12 guests