Richard Davey
ace5b8cafb
Update Animation.js
2020-09-07 11:32:46 +01:00
Richard Davey
70110825da
Console warning if frame doesn't exist
...
* `GenerateFrameNames` will now console.warn if the generated frame isn't present in the texture, which should help with debugging animation creation massively.
* `GenerateFrameNumbers` will now console.warn if the generated frame isn't present in the texture, which should help with debugging animation creation massively.
2020-09-07 10:26:04 +01:00
Richard Davey
b0872c188a
The Component.Animation.updateFrame
method has now been removed. Everything is handled by setCurrentFrame
instead, which removes one extra step out of the update process.
2020-09-05 11:12:52 +01:00
Richard Davey
66f4ab69e7
When playing an animation in reverse, if it reached the first frame and had to repeat, it would then jump to the frame before the final frame and carry on, skipping out the final frame.
2020-09-04 13:06:00 +01:00
Richard Davey
5979864dc4
Use new method name and parameter order
2020-09-04 11:50:13 +01:00
Richard Davey
1d798441f3
Support repeat count for stopping
2020-09-04 11:40:32 +01:00
Richard Davey
1a4b5b2779
AnimationManager.createFromAseprite
is a new method that allows you to use animations created in the Aseprite editor directly in Phaser.
2020-09-04 00:02:51 +01:00
Richard Davey
13601ad31b
Removed completeAnimation
, load
and setFrame
and updated other methods to use new component properties.
2020-09-03 17:44:46 +01:00
Richard Davey
96bc2e89d3
Removed load
and fixed staggerPlay
2020-09-03 17:42:10 +01:00
Richard Davey
050c2a61b6
Fixed data-type
2020-09-03 17:36:36 +01:00
Richard Davey
15c6e7718c
New Animation events
2020-09-03 15:04:09 +01:00
Richard Davey
a2f0c2e7e3
Added getTotalFrames
and calculateDuration
methods.
2020-09-02 17:43:44 +01:00
Richard Davey
fe74eb70f7
Create PlayAnimationConfig.js
2020-09-02 17:41:23 +01:00
Richard Davey
f58f94ecf6
Formatting
2020-09-02 14:42:26 +01:00
tobias
9f1cd22882
Fix typo for documentation on create method of AnimationManager on line 190
2020-08-25 00:43:22 +08:00
Richard Davey
2af65b2a1d
Improved JSDocs and types. Fix #5217
2020-08-24 15:04:00 +01:00
Richard Davey
e4a784cb8b
Lint fixed version of #4373
2020-04-27 14:40:42 +01:00
Richard Davey
e1b8b04623
Merge pull request #4975 from JasonHK/jsdoc
...
Fixed `this` return types
2020-04-27 13:25:58 +01:00
Richard Davey
e675c21db1
Finished JSDocs
2020-02-04 16:53:33 +00:00
Jason Kwok
d46d9f3d96
Fixed this
return types for Phaser.Animations.AnimationManager
2020-01-30 23:17:23 +08:00
Jason Kwok
5c040aaa62
Fixed this
return types for Phaser.Animations.Animation
2020-01-30 23:13:27 +08:00
Richard Davey
ff65e69cd1
Changed copyright date to 2020
2020-01-15 12:07:09 +00:00
Chnapy
a794c16361
improve typings: GenerateFrameNames
2020-01-02 20:23:10 +01:00
Richard Davey
a8a7d45956
Removing a frame from a 2 frame animation would cause an error when a Sprite using that animation next tried to render. Fix #4621
2019-07-03 15:07:53 +01:00
Richard Davey
f18665cfa1
The Animation Manager will now emit a console warning if you try and play an animation on a Sprite that doesn't exist.
2019-07-03 12:02:46 +01:00
Richard Davey
c91ed91ce3
License link update
2019-05-10 16:15:04 +01:00
Richard Davey
69f84f3ccf
Animations Types
2019-05-09 11:46:07 +01:00
danilo neves cruz
a586a4adeb
fix reverse generateFrameNumbers
2019-02-15 17:38:39 -02:00
Richard Davey
e7b1d086e7
Moving all of the typedefs to properly namespaced scopes, rather than globals
...
\o/ ~ "Someone, save me!"
2019-02-13 12:35:12 +00:00
Richard Davey
ccaae460a4
Added jsdoc version numbers to each event
2019-02-12 11:37:58 +00:00
Richard Davey
a3b615bac5
JSDoc fixes
2019-02-04 11:49:34 +00:00
Richard Davey
d04232ae54
JSDoc fixes
2019-02-04 11:45:17 +00:00
Richard Davey
348306cafb
Lots more jsdoc fixes and new documentation
2019-01-31 14:47:50 +00:00
Richard Davey
d380c3ac69
Virtually finished Scale Manager jsdocs and tidying up.
2019-01-28 17:12:28 +00:00
Richard Davey
bc962c25dc
All listeners use the new Events
2019-01-18 13:41:43 +00:00
Richard Davey
0297a6625c
Added Data Manager events and fixed some jsdoc links
2019-01-16 10:16:31 +00:00
Richard Davey
aa341854c7
Happy New Year
2019-01-15 16:20:22 +00:00
Richard Davey
777eb1b44a
Added Game Events
2019-01-15 15:11:19 +00:00
Richard Davey
11ed074450
Refactoring how events are handled internally and in the docs
2019-01-15 14:37:24 +00:00
Richard Davey
193d1d5c73
Docs update.
2018-12-12 11:56:09 +00:00
Richard Davey
3d36215623
Added repeat event.
2018-12-06 15:39:47 +00:00
Richard Davey
eda6e648fc
Animation now extends the EventEmitter.
2018-12-06 15:28:48 +00:00
Richard Davey
20ea562d23
create
no longer throws a warning, returns existing animation. Also added exists
method.
2018-12-06 14:47:26 +00:00
Richard Davey
2780babe10
Final Doc Jam merge
2018-12-03 15:16:23 +00:00
Richard Davey
4c4421c47f
Docjam merge
2018-10-19 12:32:43 +01:00
Richard Davey
4b1c762296
Updated @memberOf to @memberof
2018-10-10 10:49:13 +01:00
Richard Davey
a9063604dc
Replace @readOnly with @readonly
2018-10-09 13:40:00 +01:00
Richard Davey
5ad4c8dc2b
All of the Animation Events now pass the Game Object as the final argument, this includes animationstart
, animationrestart
, animationrepeat
, animationupdate
and animationcomplete
.
2018-09-27 15:55:16 +01:00
Richard Davey
75bdfcc081
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-09-24 23:20:49 +01:00
Richard Davey
89b9f42f3e
Adding jsdocs
2018-09-24 23:20:43 +01:00
Chris Andrew
dfe335102c
Added some descriptions for the AnimationManager class.
2018-09-24 18:47:24 +01:00
Richard Davey
ef558fea3c
Type definition fixes
2018-09-07 17:19:19 +01:00
Shukizu
96c7a4830c
fixed playReverse with repeat bigger than 1 #3837
2018-09-01 12:40:26 -03:00
Shukizu
a1bb80997e
fixed play in yoyo mode, bug found by @Ben-Millions #3837
2018-09-01 10:48:23 -03:00
Richard Davey
0a4fc5b026
Calling setTimeScale
on the Sprite's Animation component will now set the time scale value and keep it set until you change it again. Previously it would be reset to 1 when a new animation was loaded into the component, but this no longer happens - once the time scale is set it remains in effect, regardless of which animations are played on the Sprite.
2018-08-31 18:45:50 +01:00
Richard Davey
f6e25ebfd1
Merge pull request #3850 from polarstoat/animation-docs-fix
...
Add AnimationManager.generateFrameNumbers documentation
2018-08-20 18:31:35 +01:00
Polar stoat
beaedc12e8
Fix documentation formatting
...
Add fullstops to end of each line
Fix JSDoc formatting for properties that take multiple types
2018-07-31 20:36:54 +01:00
khaleb
2f6f8b2190
fix keyword-spacing
2018-07-24 09:36:15 -03:00
khaleb
6b81bc78a3
added since 3.12.0 in new methods, fixed keywords-spacing issue, renamed 'revert' method to 'reverse'
2018-07-24 09:28:56 -03:00
Shukizu
8da8fbedd1
fix animations with yoyo mode (issue: #3837 )
2018-07-22 14:57:07 -03:00
Shukizu
ebc9d8d96d
Add a 'revert' function that can revert the flow of a animation at any time (issue #3837 )
2018-07-22 11:44:57 -03:00
Polar stoat
44e4e7162d
Add AnimationManager.generateFrameNumbers documentation
2018-07-20 11:55:39 +01:00
Richard Davey
7aa46657c2
Tidying up jsdocs and changing float to number
2018-06-26 23:19:14 +01:00
Chris Andrew
cb6077f231
Documented most of the Animation component class and some of the Animation class.
2018-06-01 13:11:25 +01:00
Richard Davey
5e667ec139
Fixed 'all frames' check
2018-05-16 14:35:30 +01:00
Richard Davey
9500a6ee32
When calling generateFrameNames
to define an animation from a texture atlas you can now leave out all of the config properties and it will create an animation using every frame found in the atlas. Please understand you've no control over the sequence of these frames if you do this and it's entirely dictated by the json data
2018-05-15 15:34:57 +01:00
Richard Davey
6ef465a734
Animation.yoyo was ignored when calculating the next frame to advance to, breaking the yoyo effect. It now yoyos properly
2018-05-15 09:40:22 +01:00
Travis O'Neal
67ea16e3b2
Fixed bug in AnimationConfig jsdoc and filled in several empty descriptions
2018-04-19 11:36:13 -04:00
Richard Davey
18585de81d
Lots of jsdoc fixes
2018-04-16 14:43:24 +01:00
Richard Davey
c2edab2d7b
Removed all animation callbacks and added events
2018-04-07 12:36:11 +01:00
Richard Davey
daa2236998
Removed onUpdate
2018-04-07 12:35:51 +01:00
Richard Davey
9368c80922
getFrameByProgress will return the Animation Frame that is closest to the given progress value.
2018-04-04 17:14:43 +01:00
Richard Davey
fa2320238e
More jsdocs fixes and staggerPlay fix
2018-04-04 16:27:33 +01:00
Richard Davey
e734e7ef6b
Extensive Animation API changes to use milliseconds, improve docs and access to properties
2018-04-04 16:13:45 +01:00
Richard Davey
747f09af86
jsdoc fixes
2018-03-28 15:04:09 +01:00
orblazer
0d58832e5f
Fix types on Animations and Boot
2018-03-27 13:30:00 +02:00
orblazer
f42f1bf132
Change structs for generic types
2018-03-23 16:54:12 +01:00
orblazer
37b6fc5862
Fix many multiple types
2018-03-20 15:58:02 +01:00
orblazer
45158c2fbd
Update JSDoc on Animations and Boot
2018-03-19 18:13:33 +01:00
orblazer
ddf2f748cd
Update JSDoc on Animation
2018-03-19 13:54:20 +01:00
Richard Davey
cc0998660e
Updated jsdocs
2018-03-18 13:43:37 +00:00
Richard Davey
26f0578261
jsdoc fixes
2018-02-22 01:07:30 +00:00
Richard Davey
965f2b0e74
Fixed jsdocs and general tidying up.
2018-02-13 00:41:01 +00:00
Richard Davey
d1f5f8a82b
Added jsdocs
2018-02-12 16:01:21 +00:00
Richard Davey
40689d1e35
Updated jsdocs.
2018-02-07 15:27:21 +00:00
Richard Davey
2a86400a28
Added in jsdocs
2018-01-31 13:54:44 +00:00
Richard Davey
a802914243
Added in destroy methods for all managers and invoked them from Game
2018-01-31 03:38:10 +00:00
Richard Davey
9850ccb108
Removed un-used visible property and added jsdocs.
2018-01-24 23:50:46 +00:00
Richard Davey
bc298aca7b
Testing doc snippets
2018-01-21 13:19:58 +00:00
Richard Davey
04debe7a71
Added jsdocs
2018-01-21 13:01:38 +00:00
Richard Davey
e017a71f32
Game emits a boot event, which its managers listen for
2018-01-18 05:16:52 +00:00
Richard Davey
f9a7939812
Lots of work migrating to the new plugin system, fixing references and exposing on the namespace
2018-01-16 22:28:29 +00:00
Richard Davey
c77c412183
Updated paths.
2018-01-16 13:04:35 +00:00
Richard Davey
df26c96438
Moved Animation files.
2018-01-16 13:00:55 +00:00
Richard Davey
8b66bdb331
Pre-RC source code merge and tidy-up.
2018-01-16 12:59:17 +00:00
Richard Davey
f9a1e27334
Removed un-used event files and references.
2018-01-12 17:20:16 +00:00
Richard Davey
c625b8735b
Updated to using Event Emitter for all key managers and game objects. Events are now dispatched directly using arguments instead of Event objects, all managers updated to emit directly.
2018-01-12 17:09:21 +00:00
Richard Davey
bca6bd692e
You can now specify a defaultTextureKey
for animation configurations, to avoid having it inside of every frame object.
2018-01-12 17:09:20 +00:00
Richard Davey
d8f1ba03e9
Moved repository location
2018-01-09 21:43:56 +00:00