Richard Davey
c4501d2ccf
TimelineEvent
has a new property called tweenInstance
. If the Timeline event has a tween that has been activated, this will hold a reference to it.
2024-06-06 15:09:22 +01:00
Richard Davey
b70d06d475
Calling Timeline.clear
and Timeline.destroy
will now destroy any currently active Tweens that the Timeline had created. Previously, active tweens would continue to play to completion
...
Calling `Timeline.pause` will now pause any currently active Tweens that the Timeline had started
Calling `Timeline.resume` will now resume any currently paused Tweens that the Timeline had started
2024-06-06 15:09:22 +01:00
Richard Davey
1f8276ac76
Updated copyright year, company and author
2024-02-19 17:12:24 +00:00
Robert Kowalski
b4c9cc92c2
Call the Time.Timeline loop callback earlier
2024-02-16 16:31:05 -05:00
Robert Kowalski
b9a7b3ed33
Cleanup and added loop callback to Time.Timeline
2024-02-14 10:21:06 -05:00
Robert Kowalski
e999c5a911
Add repeating functionality to Time.Timeline Fix #6560
2024-02-12 18:00:36 -05:00
Richard Davey
95df650f71
The Time.Timeline
class didn't show as extending the Event Emitter, or have config
as an optional argument in the docs / TS defs. Fix #6673
2024-01-12 18:21:59 +00:00
Richard Davey
0b32610e56
Updated version to 3.70
2023-11-10 15:04:01 +00:00
Richard Davey
988ca7d2bf
Updated docs re: #6574
2023-11-10 14:49:36 +00:00
Richard Davey
f17cd8b50b
When creating a TimelineEvent
you can now set a new optional callback: if
. If set, this callback is invoked at the start of the TimelineEvent. If it returns true
, then the rest of the event is processed (i.e. tweens started, sound played, etc) otherwise the event is skipped. This allows you to create conditional events within a Timeline.
2023-11-08 16:09:42 +00:00
Richard Davey
1d15ac9a73
Fixed namespace
2023-11-08 15:56:28 +00:00
Rex
8361735197
Add complete event
2023-08-25 11:25:48 +08:00
Rex
d46024c685
Do nothing if timeline is complete
2023-08-25 11:03:14 +08:00
samme
48c3c99fed
Change default callback scope to the timer event
2023-04-06 10:25:09 -07:00
Richard Davey
19dfdeac14
jsdoc fixes and beta 23 prep
2023-03-31 18:39:40 +01:00
Richard Davey
fa0240872c
Update Timeline.js
2023-03-30 22:51:37 +01:00
Richard Davey
9c1e216572
Added complete
, totalComplete
, getProgress
, isRunning
, stop
and the ability to set a stop
event.
2023-03-30 16:59:24 +01:00
Richard Davey
29c1cf506c
Fixed property name
2023-03-30 14:02:18 +01:00
Richard Davey
c9836fa266
Update Timeline.js
2023-03-29 23:06:51 +01:00
Richard Davey
cf4f37e860
Update Timeline.js
2023-03-29 23:06:24 +01:00
Richard Davey
4d3f748db3
Removed Event.action and store direct objects instead
2023-03-29 23:02:32 +01:00
Richard Davey
62be725e43
Lots more docs. Clear method. Better from chaining.
2023-03-29 18:47:18 +01:00
Richard Davey
e1d2ea97f6
Create TimelineEventConfig.js
2023-03-29 18:46:49 +01:00
Richard Davey
f046907ce7
Create TimelineEvent.js
2023-03-29 18:46:46 +01:00
Richard Davey
8847565c1d
Added support for once events and documentation
2023-03-29 17:43:27 +01:00
Richard Davey
ba49eb228f
Testing new Timeline class
2023-03-29 13:38:45 +01:00
samme
2ed4836dd2
Add Phaser.Time.Clock#startTime
2023-01-30 06:57:40 -08:00
Richard Davey
468bf7821d
Updated copyright year
2023-01-02 17:36:27 +00:00
Richard Davey
fba997d75e
If you create a repeating or looping TimerEvent
with a delay
of zero it will now throw a runtime error as it would lead to an infinite loop. Fix #6225
2022-09-29 15:02:02 +01:00
Richard Davey
59fbcc5ca3
Updated copyright year
2022-02-28 14:29:51 +00:00
Richard Davey
0fcd785ceb
Calling TimerEvent.reset
in the Timer callback would cause the timer to be added to the Clock's pending removal and insertion lists together, throwing an error. It will now not add to pending removal if the timer was reset. Fix #5887
2021-10-26 18:23:46 +01:00
Rex
92bedcfeac
Check event.callback
2021-10-11 16:12:40 +08:00
Rex
00f998bf0d
Check event.callback
2021-10-11 16:04:38 +08:00
Rex
6814d5c6b5
Twist code
2021-10-11 16:03:15 +08:00
Rex
0a1f47c65e
Invoke callback many times in very short delay case
2021-10-11 15:44:00 +08:00
Richard Davey
c5f3f377ce
Improved JSDocs
2021-04-26 10:05:57 +01:00
samme
6219d27dbc
Add TimerEvent methods
...
- getRemaining()
- getRemainingSeconds()
- getOverallRemaining()
- getOverallRemainingSeconds()
2020-11-11 12:05:14 -08:00
samme
93b5aebdbe
Fix undefined TimerEvent
...
Fixes #5294
2020-09-11 07:45:22 -07:00
Richard Davey
55e56b1eff
Clock.addEvent
can now take an existing TimerEvent
object, as well as a config object. If a TimerEvent
is given it will be removed from the Clock, reset and then added. This allows you to pool TimerEvents rather than constantly create and delete them. Fix #4115
...
`Clock.removeEvent` is a new method that allows you to remove a `TimerEvent`, or an array of them, from all internal lists of the current Clock.
2020-08-26 10:58:06 +01:00
samme
e210de92be
Docs: correct TimerEventConfig.startAt default
2020-06-16 10:57:35 -07:00
Richard Davey
ff65e69cd1
Changed copyright date to 2020
2020-01-15 12:07:09 +00:00
J.C
9507ec7591
fix ts error, and update the output file.
2019-10-16 13:39:06 +08:00
Richard Davey
8ecab7a1a1
JSDocs fix
2019-06-25 16:56:56 +01:00
Richard Davey
c91ed91ce3
License link update
2019-05-10 16:15:04 +01:00
Richard Davey
173652ea2b
Time Types
2019-05-09 12:39:52 +01:00
Richard Davey
6a2397bbae
The Clock.now
property value is now synced to be the TimeStep.time
value when the Clock plugin boots and is no longer Date.now()
until the first update
2019-03-26 14:35:14 +00:00
Richard Davey
4fc817c519
Final batch of typedefs
2019-02-13 16:06:00 +00:00
J.C
cff904d74b
doc fix: wrong argument type
2019-01-25 11:00:40 +08:00
Richard Davey
bc962c25dc
All listeners use the new Events
2019-01-18 13:41:43 +00:00
Richard Davey
aa341854c7
Happy New Year
2019-01-15 16:20:22 +00:00