#Tweening Library

1 messages · Page 1 of 1 (latest)

pliant lion
#

Blastween
Repository: https://github.com/nevergarden/blastween
Haxelib: https://lib.haxe.org/p/blastween

Useing reflection to handle tweening stuff, can work with any game engine as long as the update manager is added to updating function.

haxelib install blastween

blastween.Blastween.tween( updateManager, object, {x: 0, y: 0}, {x: 10, y: -20}, 5 )
.setEase(blastween.Easing.QUAD_IN)
.start()
little burrow
#

damn how many tweening libs do we have now, cool project tho

pliant lion
fervent palm
#

That's a really nice use of Reflections

#

I like it!

#

Good job man!

pliant lion
fervent palm
#

No problem! I do have one suggestion, and that is to make the updater an optional argument, where if it isn't provided it will create one in a static field

#

it would remove 1 argument that is required and the work of needing to make a static field yourself or something else

#

as a fallback of course

pliant lion
fervent palm
open summit
#

Oooh this sounds useful, couldn't one theoretically use macros instead of reflection though? Should give same effect but at the highest speed (as reflection is a bit slower iirc)

little burrow