Archived

This topic is now archived and is closed to further replies.

Catch 22

This topic is 6570 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Oh. How I'm red-faced. How did I miss that? Thanks, friz

ps-Not to mention I forgot to use a source and dest rect above. Its all good now though.

------------------
Still Learning...

Share this post


Link to post
Share on other sites

I have a predicament. I can animate my sprites with BltFast, but then there isn't any colorkey. If I use Blt, I get the colorkey, but no animation.

I thought setting up the rect structure like this would work for Blt. (My sprite is 64x64)
============================================
rect.left = sprite.x;
rect.top = sprite.x;
rect.right = sprite.x + 64;
rect.bottom = sprite.y + 64;

lpddsback->Blt(&rect2, lpddsoff2, &rect2, DDBLT_KEYSRC, NULL);
========================================
If I have the rect set to (0,0,64,64) it works but no animation. With it set like above, nothing shows, except every few seconds I see a faint blip in the corner.
If I use the BltFast from below with the rect set to (0,0,64,64) it animates fine, but no colorkey of course.
========================================

lpddsback->BltFast(sprite.x,sprite.y,lpddsoff2, &rect2, DDBLTFAST_WAIT); // Works
========================================

Am I going about this the wrong way?

------------------
Still Learning...

Share this post


Link to post
Share on other sites