It looks like you're new here. If you want to get involved, click one of these buttons!
MyShape=Core.class(Shape) function MyShape:set(param, value) if param=="penWidth" then self.penWidth=value -- Probably only worth re-rendering if the pen width has actually changed self:renderLines() else self.__super.set(self, param, value) end end function MyShape:get(param, value) if param=="penWidth" then return self.penWidth end return self.__super.get(self, param, value) end |
myShape.penWidth=1 GTween.new(myShape, 1, {penWidth=10}) |
Likes: Caroline, chipster123, OZApps, atilim, Mells
Comments
Website: http://www.castlegateinteractive.com
https://play.google.com/store/apps/developer?id=Castlegate+Interactive
Best regards
Likes: Scouser
I have added to your code to tween correctly between the colours, maybe it will help others.
Website: http://www.castlegateinteractive.com
https://play.google.com/store/apps/developer?id=Castlegate+Interactive
Therefore, I've added "redMultiplier", "greenMultipler", "blueMultiplier" and "alphaMultiplier" to Sprite:get/Sprite:set functions so that you'll also be able to tween the color transform with the next version.
Likes: gorkem, Scouser
Website: http://www.castlegateinteractive.com
https://play.google.com/store/apps/developer?id=Castlegate+Interactive
Best regards