Richard Davey
|
1a509fbd98
|
Create TweenChainBuilder.js
|
2022-09-13 18:44:36 +01:00 |
|
Richard Davey
|
6c2fc3fcba
|
Working on BaseTween again so Chain can share the features
|
2022-09-13 13:16:31 +01:00 |
|
Richard Davey
|
96203aac19
|
Swap to use TweenChain
|
2022-09-12 18:50:01 +01:00 |
|
Richard Davey
|
bfce0c147b
|
Update Tween.js
|
2022-09-12 18:49:53 +01:00 |
|
Richard Davey
|
0f6977c03e
|
Update TweenChain.js
|
2022-09-12 18:49:49 +01:00 |
|
Richard Davey
|
672fe0c97f
|
Create TweenChain.js
|
2022-09-08 22:57:50 +01:00 |
|
Richard Davey
|
4e866b6046
|
onComplete can handle the pending state
|
2022-09-08 22:57:47 +01:00 |
|
Richard Davey
|
5a7949b391
|
Refactored updated to handle progress better
|
2022-09-08 18:54:19 +01:00 |
|
Richard Davey
|
3f89904040
|
Fixed a bug where setting repeat and hold would cause the Tween to include one final hold before marking itself as complete. It now completes as soon as the final repeat concludes, not after an addition hold.
|
2022-09-07 22:40:35 +01:00 |
|
Richard Davey
|
f3d798d4b4
|
Rename to avoid conflict with tween property of same name
|
2022-09-07 22:05:40 +01:00 |
|
Richard Davey
|
a2a492bb9f
|
Optimize the update flow with new countdown boolean
|
2022-09-07 18:49:28 +01:00 |
|
Richard Davey
|
fd17a6c569
|
Fixed state setter
|
2022-09-07 18:41:50 +01:00 |
|
Richard Davey
|
135c504035
|
Removed INIT as no longer used
|
2022-09-07 18:11:32 +01:00 |
|
Richard Davey
|
f3c53b4c55
|
Added all of the state methods and swapped to using them
Reduces code complexity, improves readability, reduces duplicated code
|
2022-09-07 18:11:24 +01:00 |
|
Richard Davey
|
3aaf9b1dbd
|
Reset the delta and elapsed for more accurate timing
|
2022-09-06 18:50:14 +01:00 |
|
Richard Davey
|
9fc45df7ac
|
Update Tween.js
|
2022-09-06 18:50:01 +01:00 |
|
Richard Davey
|
68c560064c
|
All of the 'Scope' tween configuration callback properties have been removed, including onActiveScope , onCompleteScope , onLoopScope , onPauseScope , onRepeatScope , onResumeScope , onStartScope , onStopScope , onUpdateScope and onYoyoScope . You should set the callbackScope property instead, which will globally set the scope for all callbacks. You can also set the Tween.callbackScope property.
|
2022-09-06 15:38:05 +01:00 |
|
Richard Davey
|
2f638d4abe
|
You can now specify a target property as 'random' to have the Tween pick a random float between the two given values. For example: alpha: 'random(0.25, 0.75)' . If you wish to only select a random integer, you can use 'int' instead: x: int(300, 600)' .
|
2022-09-06 15:34:02 +01:00 |
|
Richard Davey
|
ca571b2571
|
Update TweenData.js
|
2022-09-05 18:54:21 +01:00 |
|
Richard Davey
|
d058d216ed
|
Starting to refactor for new TweenData format
|
2022-09-02 18:56:40 +01:00 |
|
Richard Davey
|
e22009f585
|
Don't pass value if no interpolation func
|
2022-09-02 18:56:26 +01:00 |
|
Richard Davey
|
46739819db
|
Added jsdocs and returned TweenData
|
2022-09-02 18:56:04 +01:00 |
|
Richard Davey
|
e0202e6953
|
No need for ternary check
|
2022-09-02 18:55:53 +01:00 |
|
Richard Davey
|
02a6989ec7
|
Uses string based callback approach
|
2022-09-02 18:14:51 +01:00 |
|
Richard Davey
|
9da43d3af4
|
jsdoc updates and tidying up
|
2022-09-02 18:10:24 +01:00 |
|
Richard Davey
|
4eea1e75b3
|
Use GetValue for numeric-only properties
|
2022-09-02 18:10:08 +01:00 |
|
Richard Davey
|
072c709d04
|
Update GetNewValue.js
|
2022-09-02 18:09:52 +01:00 |
|
Richard Davey
|
2fc5c358f1
|
Finished jsdocs and tidied up some functions
|
2022-09-02 18:09:46 +01:00 |
|
Richard Davey
|
9cb86916ab
|
Added new typedefs for states and TweenData
|
2022-09-02 18:09:30 +01:00 |
|
Richard Davey
|
b60fa310be
|
Update Tween.js
|
2022-09-02 16:20:49 +01:00 |
|
Richard Davey
|
8b6bdba654
|
Just use targetIndex plus tidied up functions
|
2022-09-02 16:20:39 +01:00 |
|
Richard Davey
|
05659d2b6b
|
Refactored TweenData into a class to aid the VM in knowing its shape
|
2022-09-02 00:56:22 +01:00 |
|
Richard Davey
|
be6d69b574
|
Updated new timestep system, added full docs
|
2022-09-01 18:54:42 +01:00 |
|
Richard Davey
|
13e812bea0
|
Lots of tidying up and refactoring
|
2022-09-01 18:54:27 +01:00 |
|
Richard Davey
|
32bf211131
|
Removed unused const
|
2022-09-01 18:54:17 +01:00 |
|
Richard Davey
|
6aea1e7c94
|
Update TweenManager.js
|
2022-09-01 00:00:05 +01:00 |
|
Richard Davey
|
af18ffd564
|
Testing new timing system
|
2022-08-31 18:55:40 +01:00 |
|
Richard Davey
|
18e639a37a
|
Consolidated init, seek and calcDuration into a single method
|
2022-08-31 13:48:37 +01:00 |
|
Richard Davey
|
6e69ecdb0c
|
Corrected the jsdocs
|
2022-08-31 12:50:25 +01:00 |
|
Richard Davey
|
9eb364e3a2
|
Trying new flow
|
2022-08-30 23:45:19 +01:00 |
|
Richard Davey
|
b352deff83
|
create accepts an array as well
|
2022-08-30 22:06:48 +01:00 |
|
Richard Davey
|
0781e0f05b
|
Better chain method and getChainedTweens
|
2022-08-30 18:44:09 +01:00 |
|
Richard Davey
|
3bfa25f410
|
Improved docs, new chain method, new getChainedTweens method
|
2022-08-30 18:43:54 +01:00 |
|
Richard Davey
|
7e69ffb279
|
add can now take an array of configs and moved chain related functions to the new chain method
|
2022-08-30 18:18:09 +01:00 |
|
Richard Davey
|
6332241d88
|
Testing chained tweens debug
|
2022-08-29 23:49:28 +01:00 |
|
Richard Davey
|
bbe25598f5
|
Update Tween.js
|
2022-08-26 18:55:06 +01:00 |
|
Richard Davey
|
262dc391d6
|
Remove useFrames
|
2022-08-24 21:53:19 +01:00 |
|
Richard Davey
|
508252c039
|
The property and feature Tween.useFrames has been removed and is no longer a valid Tween Config option. Tweens are now entirely ms/time based.
|
2022-08-24 21:51:57 +01:00 |
|
Richard Davey
|
7fea4a095b
|
Testing new chain + delta system
|
2022-08-24 18:51:30 +01:00 |
|
Richard Davey
|
88d9c9c19c
|
Allow arrays of chained tweens
|
2022-08-24 18:51:18 +01:00 |
|
Richard Davey
|
23130bfaf0
|
Added CHAINED const
|
2022-08-24 18:50:16 +01:00 |
|
Richard Davey
|
a236326dcc
|
Fixed jsdocs and preparing for Tween.chain
|
2022-08-23 21:43:05 +01:00 |
|
Richard Davey
|
2d11103c34
|
Removed BaseTween and merged back into Tween
As we don't need to split it for Timeline any longer.
|
2022-08-23 21:27:15 +01:00 |
|
Richard Davey
|
77603c2b42
|
Removed all Timeline related code and events
|
2022-08-23 21:13:03 +01:00 |
|
Richard Davey
|
1f01eaa355
|
Update StaggerBuilder.js
|
2022-08-23 18:08:48 +01:00 |
|
Richard Davey
|
30ef13291c
|
Dispatch the pause and resume events
|
2022-08-23 18:05:59 +01:00 |
|
Richard Davey
|
80d0f9197c
|
Updated typedefs
|
2022-08-23 17:54:53 +01:00 |
|
Richard Davey
|
2a32d33860
|
No need to pass TweenData ref to funcs
|
2022-08-23 17:50:08 +01:00 |
|
Richard Davey
|
68f2f6cb61
|
Remove console.log
|
2022-08-23 17:49:55 +01:00 |
|
Richard Davey
|
73a96bc4c2
|
Removed unsupported interpolation functions
|
2022-08-23 17:49:47 +01:00 |
|
Richard Davey
|
86f123fc8f
|
Now supports interpolation tweens
|
2022-08-23 17:38:19 +01:00 |
|
Richard Davey
|
b5f219097c
|
Added interpolationData parameter
|
2022-08-23 17:37:59 +01:00 |
|
Richard Davey
|
4c23a88e03
|
We can simplify this a lot and only call funcs during TweenData creation
|
2022-08-23 17:37:40 +01:00 |
|
Richard Davey
|
6f9f20f0b3
|
Add interpolation to reserved props list
|
2022-08-23 17:37:13 +01:00 |
|
Richard Davey
|
e697176fd8
|
Add interpolation default
|
2022-08-23 17:37:01 +01:00 |
|
Richard Davey
|
0eb0171dfb
|
Specify return type
|
2022-08-23 17:36:52 +01:00 |
|
Richard Davey
|
b3b4d596a9
|
Return interpolation getStart and getEnd
|
2022-08-23 17:36:42 +01:00 |
|
Richard Davey
|
4f34cb6b42
|
Can return null.
|
2022-08-23 17:36:14 +01:00 |
|
Richard Davey
|
e845dc207f
|
Added support for value interpolation
|
2022-08-23 15:21:32 +01:00 |
|
Richard Davey
|
bec14fbac1
|
Now supports tween interpolation
|
2022-08-23 15:21:15 +01:00 |
|
Richard Davey
|
17d9c4b362
|
Added TweenData.interpolation
|
2022-08-23 15:21:01 +01:00 |
|
Richard Davey
|
98cba07913
|
Now passes the TweenData to the start and end callbacks
|
2022-08-23 15:20:50 +01:00 |
|
Richard Davey
|
16c1c4352b
|
Added GetInterpolationFunction
|
2022-08-23 15:20:28 +01:00 |
|
Richard Davey
|
1b4053a8e7
|
Removed array check and tidied up direction code
|
2022-08-23 15:20:14 +01:00 |
|
Richard Davey
|
7cd749e776
|
Working through getting timelines running again
|
2022-08-23 00:04:24 +01:00 |
|
Richard Davey
|
285fc14b87
|
Update jsdocs and persist checks
|
2022-08-23 00:04:15 +01:00 |
|
Richard Davey
|
6165549c6f
|
Remove console
|
2022-08-23 00:03:59 +01:00 |
|
Richard Davey
|
f8933f151e
|
Ready for TIMELINE_ACTIVE
|
2022-08-23 00:03:52 +01:00 |
|
Richard Davey
|
45f1bef45e
|
Make sure Tween.restart fires the Start event again
|
2022-08-22 21:36:44 +01:00 |
|
Richard Davey
|
94d0b8d797
|
Add onPause and onResume callbacks
|
2022-08-22 21:36:31 +01:00 |
|
Richard Davey
|
63fbff291a
|
Added persist to the config defaults
|
2022-08-22 19:45:19 +01:00 |
|
Richard Davey
|
fced56b261
|
Tween.restart should unpause the tween
|
2022-08-22 19:42:23 +01:00 |
|
Richard Davey
|
70c0aa2091
|
Reworked the 'restart' flow
|
2022-08-22 17:55:15 +01:00 |
|
Richard Davey
|
cbe9aa5c17
|
Fixed missing const
|
2022-08-22 17:55:03 +01:00 |
|
Richard Davey
|
2065f29f10
|
Added new persist feature
|
2022-08-22 17:54:52 +01:00 |
|
Richard Davey
|
36f60d9bb7
|
Added FINISHED state
|
2022-08-22 17:54:38 +01:00 |
|
Richard Davey
|
337d5b3228
|
Tween.stop has had the resetTo parameter removed from it. Calling stop on a Tween will now prepare the tween for immediate destructions. If you only wish to pause the tween, see Tween.pause instead.
|
2022-08-22 16:43:24 +01:00 |
|
Richard Davey
|
a13b79f86e
|
Added getTotal test
|
2022-08-19 18:49:08 +01:00 |
|
Richard Davey
|
c72ea9b7f8
|
Stop removing
|
2022-08-19 18:48:59 +01:00 |
|
Richard Davey
|
ce772272b0
|
Remove as part of destroy
|
2022-08-19 18:48:40 +01:00 |
|
Richard Davey
|
b6ae1f0061
|
Removed un-used property
|
2022-08-19 17:29:54 +01:00 |
|
Richard Davey
|
faec522e15
|
Special-case for scale
|
2022-08-19 17:29:44 +01:00 |
|
Richard Davey
|
7c26b7d461
|
Remove scale
|
2022-08-19 17:29:35 +01:00 |
|
Richard Davey
|
489130ce7b
|
Added scale
|
2022-08-19 16:52:53 +01:00 |
|
Richard Davey
|
87ba0cdbb0
|
Use substring instead
|
2022-08-19 16:50:59 +01:00 |
|
Richard Davey
|
3f502758b3
|
Updated docs
|
2022-08-19 16:45:03 +01:00 |
|
Richard Davey
|
1cee183703
|
Fixed jsdocs
|
2022-08-19 16:44:41 +01:00 |
|
Richard Davey
|
5260fd90f2
|
Update Tween.js
|
2022-08-19 15:05:33 +01:00 |
|
Richard Davey
|
ec870f6a86
|
Corrected target param
|
2022-08-19 14:58:30 +01:00 |
|
Richard Davey
|
dfebdb9a7a
|
The TweenManager calls init.
|
2022-08-19 14:42:20 +01:00 |
|