Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Gideros functions as public properties — Gideros Forum

Gideros functions as public properties

DrixDrix Member
edited November 2012 in General questions
It would be very practical to set/get sprite positions as public properties. For example:
mySprite.x = 20 -- instead of mySprite:setX(20)
xValue = mySprite.x -- instead of xValue = mySprite:getX()
This is one approach.

My question is: Is there a more efficient way to make that?

Thanks in advance
Sign In or Register to comment.