Jump to content
Search Community

export root (followup_

macguffin test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Hi just to follow up from the exportRoot stuff

 

TL:DR No issues, but with great power comes great responsibility!

--------------------------------------------------------------------------------------

 

So I think what I was seeing the other day was caused if I paused a few times in a row without un-pausing.

If you do that some of the boxes jump about and don't start up again.

Press pause, unpause x5, pause x2, unpause

 

(Also did all these with pixi just to test it wasn't pixi related)

 

 

See the Pen GvyeEj?sort_col=item_updated_at%26 by macguffin (@macguffin) on CodePen

 

If I add a flag so the pause code doesn't fire unless it's un-paused this never happens.

Press pause, unpause x5, pause x2, unpause

All is well.

 

See the Pen oepepG by macguffin (@macguffin) on CodePen

 

In my next game I'll try exportRoot again and if I get any errors I'll get back to you but as it stands it was probably my bug messing your code.

 

Also

 

If I do it with timescales it is more likely to mess up - expect the is_paused flag need to be onComplete

Press pause, unpause x5, pause x2, unpause

See the Pen zdpbMV?sort_col=item_updated_at%26 by macguffin (@macguffin) on CodePen

 

 

If I do it with timescales without the pause flag crashes the browser.

Press pause, unpause x5, pause x2, unpause

 

See the Pen EvoMpB?sort_col=item_updated_at%26 by macguffin (@macguffin) on CodePen

 

Cheers

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...