Richard Davey
8951211c74
Merge pull request #5159 from tgroborsch/feature/multi-anims-chain
...
Allow chaining of multible animations
2020-07-13 12:19:03 +01:00
samme
5b9c34a32a
Docs: Depth#depth and Depth#setDepth()
2020-05-25 09:20:42 -07:00
timo
a39199849e
Allow chaining of multible animations
...
With this commit it is possible to chain more than one animation together for example:
this.mole.anims.play('digging',true).anims.chain('lifting').anims.chain('looking').anims.chain('lowering');
This commit introduces a property nextAnimsQueue. It holds all additional nextAnim-Keys in the order the chain()-method was called. It is handed over to the nextAnim-Property in the stop()-method.
2020-05-22 14:03:42 +02:00
timo
b00acb1838
Revert "Allow for chaining multible animations"
...
This reverts commit a5eacab048
.
2020-05-22 13:45:21 +02:00
timo
a5eacab048
Allow for chaining multible animations
...
This allows for chaining multible animations by calling the chain(key) method multible times like this:
this.mole.anims.play('digging',true).anims.chain('lifting').anims.chain('looking').anims.chain('lowering');
This commit adds a new property nextAnimsQueue. This is an array that holds the chained keys in order of chain() requests.
This list will be worked on in the stop() function.
2020-05-22 13:30:37 +02:00
Richard Davey
70a4b9843e
Merge pull request #5038 from halilcakar/master
...
Update JSDocs for events
2020-04-27 11:51:40 +01:00
Richard Davey
4f80ec5748
Fix spelling mistake
2020-04-27 10:13:15 +01:00
samme
03c9c5fa33
Add PathFollower#pathDelta
2020-04-17 09:28:40 -07:00
samme
08aaf6231f
Docs: fix my math in Transform#rotation
2020-03-27 21:18:49 -07:00
halilcakar
43f26ad31f
Update JSDocs for events
2020-03-10 11:11:43 +03:00
samme
a84f7efb45
Docs: radian values for Transform#rotation
2020-02-27 10:15:44 -08:00
Richard Davey
e4c158c883
Merge pull request #4968 from JasonHK/jsdoc
...
Fixed `this` return types
2020-01-29 11:48:43 +00:00
Richard Davey
72f0395eec
Update TransformMatrix.js
...
Added missing braces.
2020-01-29 11:48:11 +00:00
Richard Davey
4de9d52769
Animation.setCurrentFrame
will no longer try to call setOrigina
or updateDisplayOrigin
if the Game Object doesn't have the Origin component, preventing unknown function errors.
2020-01-27 14:48:50 +00:00
Jason Kwok
00818a9c61
Fixed this
return types for Phaser.GameObjects.Components.TransformMatrix
2020-01-26 20:42:58 +08:00
Jason Kwok
c97a59011d
Fixed this
return types for Phaser.GameObjects.Components.PathFollower
2020-01-26 20:36:05 +08:00
samme
f4c011496c
Fix PathFollower always at end of path
2020-01-16 14:44:26 -08:00
Richard Davey
ff65e69cd1
Changed copyright date to 2020
2020-01-15 12:07:09 +00:00
Richard Davey
90c8825ddb
A PathFollower
with a very short duration would often not end in the correct place, which is the very end of the Path, due to the tween handling the movement not running one final update when the tween was complete. It will now always end at the final point of the path, no matter how short the duration. Fix #4950
2020-01-15 10:42:56 +00:00
Richard Davey
a81c2ea132
When playing an Animation, if you were to play another, then pause it, then play another the internal _paused
wouldn't get reset, preventing you from them pausing the animations from that point on. You can now play and pause animations at will. Fix #4835
2020-01-14 22:42:14 +00:00
Richard Davey
1928480913
Fixed JSDocs
2020-01-13 12:35:33 +00:00
Richard Davey
695cb7e4e2
AlphaSingle
is a new Game Object Component that allows a Game Object to set its alpha values, but only as a single uniform value, not on a per-quad basis.
2019-12-28 17:27:01 +00:00
Chris Andrew
15ac5e736a
#4903 Clarified z position documentation by linking to depth GO component.
2019-12-09 16:57:05 +00:00
Richard Davey
ed69ef6626
The GameObject.setTexture
method can now accept either a string, in which case it looks for the texture in the Texture Manager, or a Texture instance, in which case that instance is set as the Game Object's texture.
2019-10-09 10:49:37 +01:00
Richard Davey
55c73d399b
GameObject.ToJSON
will no longer output the scaleMode
in the json because it's not a valid Game Object property.
2019-10-01 14:41:58 +01:00
Richard Davey
fc5630cb72
The displayWidth
and height should never be negative.
2019-08-30 19:35:52 +01:00
Richard Davey
717258e3f1
Docs update
2019-08-05 14:07:36 +01:00
Richard Davey
9f15b5a96b
Removed scale abs, as deeper effects unknown
2019-08-03 11:08:22 +01:00
Richard Davey
cc85ec1d35
Fixed scaleX and scaleY
2019-08-02 17:28:46 +01:00
Richard Davey
c1767e404f
Fixed scaleX and scaleY to handle negative scales and added rotation fix
2019-08-02 01:50:02 +01:00
Richard Davey
6e2d22e5cb
jsdoc update
2019-08-01 17:44:20 +01:00
Richard Davey
718f75b797
TransformMatrix.rotation
now returns the properly normalized rotation value
2019-07-26 14:20:38 +01:00
Richard Davey
14faabcadf
Updated docs
2019-07-26 14:19:44 +01:00
Richard Davey
41d007fe67
Origin.updateDisplayOrigin
no longer applies a Math.floor to the display origins, allowing you to have a 0.x origin for a Game Object that only has a width or height of 1. This fixes issues with things like 1x1 rectangles displaying incorrectly during rendering.
2019-07-15 16:30:08 +01:00
Richard Davey
deca3c95a3
Calling Animation.setRepeat()
wouldn't reset the repeatCounter
properly, causing Sprite bound animation instances to fail to change their repeat rate. Fix #4553
2019-07-03 15:33:13 +01:00
Richard Davey
83e54cfb16
The Animation component will no longer start an animation on a Sprite if the animation doesn't exist. Previously it would throw an error saying "Unable to read the property getFirstTick of null".
2019-07-03 12:02:56 +01:00
Richard Davey
5fa4264219
Added new Transform.getParentRotation method
2019-06-19 10:40:47 +01:00
Richard Davey
11d845a77e
Specifically state this is a render flag only #4574
2019-06-06 09:52:19 +01:00
Richard Davey
8968b2179c
Added GameObject.scale transform property for a unified scale setter
2019-06-05 15:30:23 +01:00
Richard Davey
90e04c7e90
Merge pull request #4563 from samme/types/tween-configs
...
Add types for tween configs
2019-05-30 22:00:37 +01:00
Richard Davey
df0b474638
Added getTopCenter, getBottomCenter, getLeftCenter and getRightCenter
2019-05-29 16:27:31 +01:00
samme
777f436aa3
Add NumberTweenBuilderConfig to path configs
2019-05-28 14:11:28 -07:00
Richard Davey
c91ed91ce3
License link update
2019-05-10 16:15:04 +01:00
Richard Davey
a6341a97a8
Fixed Types references
2019-05-09 15:32:53 +01:00
Richard Davey
b09ddc9048
GameObject Types
2019-05-09 12:01:00 +01:00
Richard Davey
3ca2b667b3
PathFollower Types
2019-05-09 11:57:27 +01:00
Richard Davey
2f48d68735
A shader can now be used as a bitmap mask
2019-05-01 11:12:31 +01:00
Richard Davey
1995be80a2
GameObjects.Components.PathFollower
is a new component that manages any type of Game Object following a path. The original Path Follower Game Object has been updated to use this new component directly, but it can be applied to any custom Game Object class.
2019-04-08 13:53:08 +01:00
Richard Davey
e017691c68
The ScaleMode
Component has been removed from every Game Object, and along with it the scaleMode
property and setScaleMode
method. These did nothing anyway as they were not hooked to the render pipeline and scale mode should be set on the texture, not the Game Object. Fix #4413
2019-03-24 23:07:27 +00:00
Richard Davey
3456e19815
Updated jsdocs
2019-03-05 09:20:30 +00:00