I have almost finished game and I need to create custom sized scrollview/tableview with results. I got stuck with this because of custom mask for Shape/Sprite
@pykaso, masking is not yet a feature available, which can limit a few things. However there are ways to overcome this and visually achieve the result you want (not a very good solution, but gives the visual result)
as @OZapps said there are solutions, like putting Bitmap (with transparent center) on top of it. Or Shape object, that fills everything around. There's probably even a solution with Meshes, which could be even more efficient.
@john26 no not in the middle, but you also don't need multiple shapes. Imagine as it is a huge fat snake biting its own tail, this way you can (in circular way) draw the same with one Shape.
@john26 and @ar2rsawseen - couldn't you just use a very thick stroke on the shape? I haven't messed with shapes much so don't know if it's possible or not, but wouldn't that give you a hole in the middle?
Either way, masks and clipping are desperately needed.
Comments
https://github.com/gideros/gideros
https://www.youtube.com/c/JohnBlackburn1975
(sorry for my english)
You should post some code, I think.
https://github.com/gideros/gideros
https://www.youtube.com/c/JohnBlackburn1975
http://screenr.com/X7A7
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps
https://github.com/gideros/gideros
https://www.youtube.com/c/JohnBlackburn1975
Either way, masks and clipping are desperately needed.
set the line style thickness to a large number and you have a thick stroke.
Update: Oh Sorry, you were not asking, but suggesting
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps
thanks for tips!
I'll try it. .. and will share the results here
.. and the first draft is here. List is behing Bitmap with transparent center.
http://screenr.com/BmA7