what i'm trying to do is do something like "Worms" where the explosions take out half the land.
is it possible to do this using sprites, or what would you suggest?
thnx!
Printable View
what i'm trying to do is do something like "Worms" where the explosions take out half the land.
is it possible to do this using sprites, or what would you suggest?
thnx!
Sure, just blt a circle to the terrain the same color as the background! :)
There's a gdi call Ellipse for drawing circles on dc's. If you have an animated or floating background or even mask blit the foreground over the background then you could ellipse on the foreground with the maskcolor and then blit it on the background.
Yeah, but I'm assuming he has it like this: a background image that is blted first, and then the terrain image, where the destroied parts are transparent so you can see the background.
as was I :rolleyes:
Oops sorry hehe :o
It was 2am and I was kinda sleepy... sorry :)
what you should do is use a mask and a subraction blt for the raster op constants, and that should work.
Hey Genius, sorry but that's not possible, 1) there's no raster op like that, 2) even if there was it wouldn't work because you have no information on what's behind the pixels you subtracted :p