Bullet problem help

Get help using Construct 2

Post » Fri Nov 01, 2013 5:38 am

Hey guys, I have a slight problem with a top down shooter and the enemies' bullets.

If an enemy has spawned on screen their bullets are fine, but if that enemy has been killed and destroyed their bullets suddenly appear to fire from the top left of the screen.

Each enemy is setup to fire toward the direction of the player. I've tried to fix it with the 'destroy outside layout' behavior applied to each enemy bullet and other simple methods, but I can't get those bullets to stop firing when an enemy hasn't spawned yet.

edit: basically it seems like before an enemy is set to spawn, they are appearing outside the top left of the layout and shooting toward the player. FaberCastell2013-11-01 05:40:32
B
7
S
2
Posts: 24
Reputation: 569

Post » Fri Nov 01, 2013 9:03 am

Does the enemy: if on-screen: spawn another object (bullet)? Or have you done it differently?
B
5
S
1
Posts: 38
Reputation: 839

Post » Sat Nov 02, 2013 12:46 am

Thankyou man that fixed it straight away, much better!
B
7
S
2
Posts: 24
Reputation: 569


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 6 guests