help with destroying objects outside of layer or screen

Get help using Construct 2

Post » Wed Nov 19, 2014 4:57 am

please can someone help me work out why, when i destroy the bullet object when its outside of the layer my shooting logic brakes

same goes when spawning enemy "legs2" when i destroy them once outside of layer my spawning logic brakes??

https://drive.google.com/file/d/0B-qz3V ... sp=sharing
B
7
S
1
Posts: 20
Reputation: 450

Post » Wed Nov 19, 2014 5:02 am

just noticed that ive left out the destroy outside logic from that capx. but if you add destroy outside layer behavior to bullet or legs2 sprites they stop working.
B
7
S
1
Posts: 20
Reputation: 450

Post » Wed Nov 19, 2014 5:44 am

Replace 'Bullet is on screen' with 'Bullet.Count = 0'.

(Destroy the initial bullet).
ImageImageImage
B
71
S
21
G
231
Posts: 3,688
Reputation: 129,352

Post » Wed Nov 19, 2014 5:33 pm

thankyou for reply @blackhornet :D will give that a try straight away and with the legs2 sprite. and will let you know if fixed :D

thanks again
B
7
S
1
Posts: 20
Reputation: 450

Post » Wed Nov 19, 2014 11:26 pm

@blackhornet ok ive done what you said and replaced the "not on screen" to bullet.count=0 but it still dont work.
my fire logic still breaks and does nothing. please help!!!
B
7
S
1
Posts: 20
Reputation: 450

Post » Thu Nov 20, 2014 12:03 am

no matter its fixed :D thankyou @blackhornet bullet count did work i forgot to switch the invert back over once edited ;)
B
7
S
1
Posts: 20
Reputation: 450


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 13 guests