Computer Science Canada

help with making objects transparent

Author:  Michael [ 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?

Author:  person [ Thu Jan 12, 2006 8:48 pm ]
Post subject: 

go into f10 and look up:

Pic.Draw and look at "PicMerge"

and to set the transparent colour, use Pic.SetTransparentColour

Author:  Michael [ Thu Jan 12, 2006 8:54 pm ]
Post subject: 

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

Author:  person [ Thu Jan 12, 2006 8:59 pm ]
Post 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


: