oliversb Posted October 18, 2014 Share Posted October 18, 2014 How do I assign transparency to sprite to make textures applied to that sprite semi-transparent? Thanks Link to comment Share on other sites More sharing options...
CtlAltDel Posted October 19, 2014 Share Posted October 19, 2014 mysprite.alpha = 0.5; Link to comment Share on other sites More sharing options...
lewster32 Posted October 19, 2014 Share Posted October 19, 2014 Or if you need specific transparent areas, just make sure you use .png files with an alpha channel. Link to comment Share on other sites More sharing options...
oliversb Posted October 19, 2014 Author Share Posted October 19, 2014 Thanks people. CtlAltDel seems to have answered my question. Link to comment Share on other sites More sharing options...
Huy Ngo Posted September 3, 2016 Share Posted September 3, 2016 On 10/19/2014 at 3:13 PM, CtlAltDel said: mysprite.alpha = 0.5; Can you please tell me what does 0.5 mean? CtrlAltDel Link to comment Share on other sites More sharing options...
CtlAltDel Posted September 8, 2016 Share Posted September 8, 2016 It means it is 50% transparent. Link to comment Share on other sites More sharing options...
Recommended Posts