Trying to implement explosions in Side scrolling tutorial

sorry, one thing i just spotted is that bullets are still interacting with the plane once the explosion is triggered. if you add this into the explode(self) function.



	-- disable collision - stops bullets interacting with the plane once destroyed
	local body = b2d.get_body("#collisionobject")
	b2d.body.set_active(body, false)
	

This will allow bullets to pass through to pass through the plane once the explosion has been activated

Hi all.

Thank you to everyone who has helped out. I am greatly in your debt.

With the fixes I now have I think I can has this Problem is now Solved.

Thank you again.

Regards

Frank

3 Likes