Change what setTransparency does to avoid a lot of problems with calling functions in the wrong order