Saturday, 3 September 2022

Stencyl topic update: code: setting opacity

if you have noticed some of the pages have been removed from game mechanics section, it is stuffs to do with old Stencyl 2.x that is not a game mechanics. Game mechanics often require multiple behaviors and are very complex subject to just look at.   

updated page: http://stencyl-nator.blogspot.com/p/code-setting-opacity.html

changes: or you can refer code (preview code). 

For Stencyl 4.0 and later, 
g. alpha = 1 // default value
g. alpha =  0.5 //50% opacity. 
g. alpha =  0.2 //20% opacity

No comments:

Post a Comment