Please help with colour Transparency...

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Apr 2007
Posts: 22
Reputation: t3hfr3ak is an unknown quantity at this point 
Solved Threads: 0
t3hfr3ak t3hfr3ak is offline Offline
Newbie Poster

Please help with colour Transparency...

 
0
  #1
May 1st, 2007
I am trying to make a game using VB... I am making frogger... and when he is on the grass I want the colour around the frog to be green then grey when he is on the road... so instead of setting the colour for each of them and having separate sprites(images) for each change and adding 200+ lines to the code. Is there a way to set the background colour of the image to transparent??????????
Reply With Quote Quick reply to this message  
Join Date: Apr 2007
Posts: 43
Reputation: vbCNEW is an unknown quantity at this point 
Solved Threads: 3
vbCNEW vbCNEW is offline Offline
Light Poster

Re: Please help with colour Transparency...

 
0
  #2
May 2nd, 2007
of course there is... by the way what code are you using in displaying the image... is it in a picture box? or directly drawn in the form...

my suggestion is use first a USERCONTROL...
create an image, make the background of the image MAGENTA!!!!
for masking issues.. save it to bmp for high resolution.
set the maskimage property to your image and mask color to the background of your image(ex MAgenta)..

if my explanation is not good.. try vbcode.com and look for a game that do ttransparency.. theres a lot there..

i hope it helps
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum


Views: 1503 | Replies: 1
Thread Tools Search this Thread



Tag cloud for Visual Basic 4 / 5 / 6
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC