Gamua / Starling-Framework

The Cross Platform Game Engine
http://www.starling-framework.org
Other
2.86k stars 822 forks source link

Something like Tween.hasEndValue() or Tween.hasProperty() #993

Closed esidegallery closed 7 years ago

esidegallery commented 7 years ago

I think it would be useful to be able to check whether a tween is animating a given property, especially as calling Tween.getEndValue() throws an error if the property doesn't exist, and try/catch statements can be expensive.

Thank you!

PrimaryFeather commented 7 years ago

Indeed, that makes a lot of sense! Thanks for the suggestion!

I just added the new method animatesProperty(property:String):Boolean. That should do the trick!