GLBasic forum

Main forum => GLBasic - en => Topic started by: Kyo on 2010-May-22

Title: problem with SETTRANSPARENCY
Post by: Kyo on 2010-May-22
if I use SETTRANSPARENCY, inside the main loop it works fine

Work!
Code (glbasic) Select

WHILE TRUE
updateMice()
SETTRANSPARENCY RGB(0,255,0)

game()

ShowFPS()
SHOWSCREEN
WEND


if I use SETTRANSPARENCY, inside the function don't works

Code (glbasic) Select

FUNCTION updatesprite: spr

SETTRANSPARENCY RGB(0,255,0)
         STRETCHSPRITE img, x  , y  ,sxx  ,syy

ENDFUNCTION


Why?
Title: Re: problem with SETTRANSPARENCY
Post by: Schranz0r on 2010-May-22
Use SETTRANSPARENCY befor you load a sprite!
Title: Re: problem with SETTRANSPARENCY
Post by: Kyo on 2010-May-22
Quote from: Schranz0r on 2010-May-22
Use SETTRANSPARENCY befor you load a sprite!

Work! Thanks!  :booze:
Title: Re: problem with SETTRANSPARENCY
Post by: Schranz0r on 2010-May-22
No problem :D