Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Blitting Sprites in VB6


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 22 December 1999 - 02:29 AM

I am making a game for computer class but their is one major bug.In the program you selectan arena to play in and the characters to use from one form with thumbnails of themthen when the maximized Game form comes up it is supposed to Blit in the background with the sprites of the characters. I am only currently blitting one character as I try and get it to work. One problem though: It blits the screen and then instead of blitting the mask and picture, it blits a semi transparent image of the form from which you select the wanted arena and characters. What I am doing is this:

Place the background in a non visible picture box

Place the mask and picture in seperate non visible picture boxes

SRCCOPY the background to the visible picture box

SRCAND the mask to the visible picture box over the background

SRCPAINT the picture over the mask.

Please Help


Sponsor:

#2 Machaira   Moderators   -  Reputation: 1028

Like
Likes
Like

Posted 22 December 1999 - 02:29 AM

You had it half right. What you need to do is a SRCAND followed by a SRCINVERT. This assumes that your picture has black as the background. Try this link after 5:00 p.m. EST for a sample:

members.home.net/machaira/bitblt.zip

------------------
Breakaway Games





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS