|
-
Jun 30th, 2001, 06:38 AM
#1
Thread Starter
Hyperactive Member
Subtract one sprite from another?
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!
When I write my code, only God and I know what it means. But a week later, only God knows.
-
Jun 30th, 2001, 08:37 AM
#2
Frenzied Member
Sure, just blt a circle to the terrain the same color as the background!
-
Jun 30th, 2001, 05:47 PM
#3
transcendental analytic
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.
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Jul 1st, 2001, 07:07 PM
#4
Frenzied Member
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.
-
Jul 2nd, 2001, 03:22 AM
#5
transcendental analytic
as was I
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Jul 2nd, 2001, 02:09 PM
#6
-
Jul 2nd, 2001, 05:51 PM
#7
New Member
Probably the best thing to do...
what you should do is use a mask and a subraction blt for the raster op constants, and that should work.
-
Jul 5th, 2001, 08:01 AM
#8
Frenzied Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|