Hello,
the Omega forums are not much visited these days, I hope you don't mind if I post something here I already posted over there. If I find a solution for this matter, this would be a huge step ahead.
I am working on some additional GFX.
If my startship gets shot and is damaged, I have a 'broken' image.
I want to alphablend it on my starship image so it looks broken a bit.
When creating the starship, nkapx1 and nkapx2 are -1.
When the ship is damaged, they are random values from 0 to image.width/height -broken image width/height.
When they are >-1 they are drawn blended on the ships image.
The only problem is I have different ships and so if the ship is smaller or something (not fills the whole image) the broken image is 'coming out' of the ship image.
Any possibility to 'combine' the ship image with the broken image before drawing so the broken image is only drawn where the ship image is not black?
This would also give me the possibility to make monsters bleed.
Any idea how to do this?
Is the problem understandable?
Thanks,
Firle
Bookmarks