How do I make shapes to burst or disappear when it intersects with a rectangle2D(bullet). Bursting will be preferable since I am developing a shooting game. I want the rectangle to burst or disappear when the bullet (another rectangle) intersects or hits it. Someone please help me with this. Thanks in Advance.
Asked
Active
Viewed 286 times
-2
-
Please do not ask the identical question multiple times - instead try to improve your original question via editing. If you can make it meet the site-standards it might get reopened. – piet.t Jul 22 '15 at 09:05
-
Have a look into particle effects – MadProgrammer Jul 22 '15 at 09:14
-
Thanks much......but I think that is a little bit advance for what am working on right now – BlueWizAngel Jul 23 '15 at 22:35
1 Answers
1
Burst: you replace Rectangle
object with 4 lines that make up the rectangle and move them in different directions, thus creating burst effect.
Disappear: you simply stop drawing the Rectangle
object once it collides

AlmasB
- 3,377
- 2
- 15
- 17