Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 help with making objects transparent
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Michael




PostPosted: Thu Jan 12, 2006 8:35 pm   Post subject: help with making objects transparent

hey people
im working on "keep the helicopter up " game
u know.. u gotta click 2 make it go up and dont click 2 let it go down and make sure it doesn't touch any obsticles on the way

for the helicopter i'm using a small JPG image.. the problem is.. that image has white background and i want my turing background to be a different color
i want to make the pic transparent but turing doesn't support GIF
are there any other ways?
Sponsor
Sponsor
Sponsor
sponsor
person




PostPosted: Thu Jan 12, 2006 8:48 pm   Post subject: (No subject)

go into f10 and look up:

Pic.Draw and look at "PicMerge"

and to set the transparent colour, use Pic.SetTransparentColour
Michael




PostPosted: Thu Jan 12, 2006 8:54 pm   Post subject: (No subject)

yep thanks i see it now but how do i actually use the command..
it just explains it there
person




PostPosted: Thu Jan 12, 2006 8:59 pm   Post subject: (No subject)

code:

var picID : int := Pic.FileNew ("pic.bmp")
Pic.SetTransparentColor (picID, yellow)
Pic.Draw (picID, 0, 0, picMerge)


look at the jpg before running the prog



pic.JPG
 Description:
 Filesize:  1.53 KB
 Viewed:  1206 Time(s)

pic.JPG


Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: