stoneby / hotween

Automatically exported from code.google.com/p/hotween
0 stars 0 forks source link

Adding GameTime update type #37

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Dear Daniele,

First, thank you very much for your dedication to HOTween, it is deeply 
appreciated.  I use it everyday and could not live without it! :-)

We all know that pausing a game in Unity is rather problematic and that most of 
the time the solution resides in setting timeScale to zero.  Unfortunately, 
this also stops all particle systems, and in my case I absolutely need some 
particle systems to continue playing while the game is paused.

So the solution I propose (and Unity should have done it a long time ago) is to 
introduce a concept of GameTime in HOTween, which can be paused manually.  It 
is then up to the developer to select which UpdateMode to use.  This GameTime 
should also be exposed publicly so that it may be used for other purposes than 
tweening, if need be.

I propose to contribute that feature to HOTween if you think it is worthwhile.

Let me know what you think.

Kind regards,
Mathieu

Original issue reported on code.google.com by mat.fren...@gmail.com on 17 Aug 2012 at 12:44

GoogleCodeExporter commented 8 years ago
Hi Mathieu,

First, glad you're liking HOTween :)

I'm not sure I understood your concept of GameTime. You mean a different 
version of Time, with its own GameTime.timeScale? How would this be related to 
HOTween's UpdateType? And how could this be useful for non-tweening purposes? 
Please tell me more. It seems interesting, but I really didn't get it - plus I 
also just came home after a big lunch, and am very dizzy :P

Kind regards,
Daniele

Original comment by daniele....@gmail.com on 17 Aug 2012 at 3:27

GoogleCodeExporter commented 8 years ago

Original comment by daniele....@gmail.com on 6 Sep 2012 at 9:16

GoogleCodeExporter commented 8 years ago
Since I didn't get further information, I'm considering this issue closed.
By the way, HOTween already allows to choose the UpdateType, so you can use a 
TimeScaleIndependentUpdate.

Original comment by daniele....@gmail.com on 23 Feb 2013 at 12:21