Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Visual Basic Forum for Visual Basic Programmers VB Forum Index » Direct X / Game Programming

Post new topic   Reply to topic
Deleting an old sprite in BITBLT
View previous topic :: View next topic  
Author Message
Archonius
Newbie


Joined: 22 Aug 2005
Posts: 7

PostPosted: Aug 22nd, 2005 12:51 PM    Post subject: Deleting an old sprite in BITBLT Reply with quote

I'm using bitblt to make a space shooter game. But im using a textured background and cant figure out how to delete/overwrite a sprite when finished with it.

For example..

If I'm moving my space craft left it will need to keep being drawn over and over moving slightly left everytime. How do I delete where it was, before putting it where its going to be.

I was toying with the idea of recording where all the sprites are. Then just redrawing the whole scene from scratch having moved one piece along before hand. But this is abit rich in processing.

I've been reading about Double masking. But I've only just started using bitblt. I dont want to over complicate myself.

Any ideas are very welcome

Rob
Back to top
View user's profile Send private message Send e-mail
DoobieKeebler
Moderator


Joined: 17 Jun 2005
Posts: 254
Location: 181°15'2.003"W, 93°5'16.956"N

PostPosted: Aug 24th, 2005 09:06 AM    Post subject: Reply with quote

In the meantime, could you use an image box or a picture box and just move that along? That was the road I didn't want to switch you to in your other post but as a temporary fix that might be workable.
Back to top
View user's profile Send private message
Archonius
Newbie


Joined: 22 Aug 2005
Posts: 7

PostPosted: Aug 24th, 2005 06:32 PM    Post subject: Reply with quote

ive been there tried that, didnt like it and switched to bitblt. thanks anyway. I've sorted out this problem now but check my new thread for my current one Smile
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Visual Basic Forum for Visual Basic Programmers VB Forum Index » Direct X / Game Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Visual Basic Forum runs phpBB | Forum Template © iOptional
VB Resources | SSL | Visual Basic