
lucbloom
-
Content Count
10 -
Joined
-
Last visited
Reputation Activity
-
lucbloom got a reaction from MichaelD in Phaser's Tweening syste does not meet my needs... I think.
That framework is really cool. I guess I had to get used to how loose JavaScript actually is, combining frameworks like that.
Now my code is:
if (!halo.timeline) { halo.timeline = new TimelineLite(); halo.timeline .to(halo.scale, 0, {x:0, y:0}) .to(halo, 0, {alpha:1}) .to(halo.scale, duration/1000, {x:scale, y:scale, ease:Bounce.easeOut}) .to(halo, duration*2/1000, {alpha:0}); } halo.timeline.restart(); Finishing, reverting and cancelling is also in there, so yeah, exactly what I wanted.
TimelineLite.prototype.finish = function(){ this.progress(1, false);} -
lucbloom got a reaction from analytik in Center BitmapText
Regardless of implementation concept, all objects that have a clear width & height should have an anchor point, *especially* when the TTF counterpart *does* have one.
If you use it, and I use it, and I've seen other people use it, it's probably u useful feature.
I don't see what there is to confuse? You'd use a property on an object the same way and get the same results for 2 kinds of objects. For me, this is the opposite of confusing. It would be confusing if I'd have to set one property on a TTF object and do something else on a BM font label object to get the same thing.
PS: Would you mind positing your solution?
-
lucbloom reacted to lewster32 in Phaser's Tweening syste does not meet my needs... I think.
It's true that having two separate RAF callbacks isn't as optimal. I may attempt at some point to create a GSAP plugin which overrides GSAP's ticker to use Phaser's own. At the core of GSAP the ticker is pretty simple; it just dispatches a 'tick' event every frame, so in theory it shouldn't be difficult.
-
lucbloom got a reaction from lewster32 in Phaser's Tweening syste does not meet my needs... I think.
That framework is really cool. I guess I had to get used to how loose JavaScript actually is, combining frameworks like that.
Now my code is:
if (!halo.timeline) { halo.timeline = new TimelineLite(); halo.timeline .to(halo.scale, 0, {x:0, y:0}) .to(halo, 0, {alpha:1}) .to(halo.scale, duration/1000, {x:scale, y:scale, ease:Bounce.easeOut}) .to(halo, duration*2/1000, {alpha:0}); } halo.timeline.restart(); Finishing, reverting and cancelling is also in there, so yeah, exactly what I wanted.
TimelineLite.prototype.finish = function(){ this.progress(1, false);}