I am wondering if it’s possible, with Corona, to remove only portions of an object, on collision?
More specifically, I am wanting to remove portions of a barrier, but only the parts that collide with my mine’s blast-wave.
Your object would need to be made up of a series of smaller parts that could be removed. Or you can have an undamaged object, a damaged object and a destroyed object and change them out using sprites or image removal/replacement techniques.
That’s what I figured.
Some of my barriers are somewhat big and I’m not happy with how it looks (maybe I’m just being a perfectionist) when the user lays a mine next to one, the mine explodes and the entire barrier/image is removed.
I was hoping there might be some type of… reverse masking? So that whatever area of the barrier that overlaps with the blast-wave either gets removed or hidden and the physics of that specific portion turned off.
I guess at this point I’ll just have to scale down my barriers to try to make it look more convincing.
Your object would need to be made up of a series of smaller parts that could be removed. Or you can have an undamaged object, a damaged object and a destroyed object and change them out using sprites or image removal/replacement techniques.
That’s what I figured.
Some of my barriers are somewhat big and I’m not happy with how it looks (maybe I’m just being a perfectionist) when the user lays a mine next to one, the mine explodes and the entire barrier/image is removed.
I was hoping there might be some type of… reverse masking? So that whatever area of the barrier that overlaps with the blast-wave either gets removed or hidden and the physics of that specific portion turned off.
I guess at this point I’ll just have to scale down my barriers to try to make it look more convincing.