Ninjadoodle Posted January 5, 2018 Share Posted January 5, 2018 Hi @enpu Let's say I setup a 10 second tween and pause it at 6 seconds in. Is it possible to read the remainder of the tween time or the tween time elapsed into a variable? Thanks heaps in advance! Quote Link to comment Share on other sites More sharing options...
enpu Posted January 5, 2018 Share Posted January 5, 2018 @Ninjadoodle https://www.panda2.io/docs/api/Tween There is two properties in Tween, currentTime and duration. You should be able to calculate that from those var remainingTime = tween.duration - tween.currentTime; Ninjadoodle 1 Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted January 5, 2018 Author Share Posted January 5, 2018 @enpu - Thanks heaps! That's exactly what I needed Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.