
-----------------------------------
Michael
Thu Jan 12, 2006 8:35 pm

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?

-----------------------------------
person
Thu Jan 12, 2006 8:48 pm


-----------------------------------
go into f10 and look up:

Pic.Draw and look at "PicMerge"

and to set the transparent colour, use Pic.SetTransparentColour

-----------------------------------
Michael
Thu Jan 12, 2006 8:54 pm


-----------------------------------
yep thanks i see it now but how do i actually use the command..
it just explains it there

-----------------------------------
person
Thu Jan 12, 2006 8:59 pm


-----------------------------------

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
