Commit df82146
committed
examples: fix 14_pause_tween which was trying to use the removed
relative values feature (`start('+500')`) and make it use `.delay(500)`
instead, and avoid using negative values for delaye (`.delay(-500)`) in
the 13_relative_start_time example because it may not be intuitive and
plus that feature broke with the previous merge that fixed more
important timing issues (especially with unfocused browser tabs)
BREAKING: If you are using negative values for delay, f.e.
`tween.delay(-500)`, instead manage the time values passed to your
tweens manually. For example:
```js
tweenOffset = 500
const tween = new Tween(...)
tween.start(currentTime)
tween.update(currentTime + tweenOffset) // advance it immediate immediately, as if it already started earlier
// in the update loop
tween.update(newCurrentTime + tweenOffset)
```1 parent bb608dd commit df82146
File tree
3 files changed
+6
-5
lines changed- examples
3 files changed
+6
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
| 65 | + | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
| 67 | + | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
0 commit comments