File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ var PlayAnimation = function ( items , key , startFrame )
2+ {
3+ for ( var i = 0 ; i < items . length ; i ++ )
4+ {
5+ items [ i ] . anims . play ( key , startFrame ) ;
6+ }
7+
8+ return items ;
9+ } ;
10+
11+ module . exports = PlayAnimation ;
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ module.exports = {
1313 PlaceOnLine : require ( './PlaceOnLine' ) ,
1414 PlaceOnRectangle : require ( './PlaceOnRectangle' ) ,
1515 PlaceOnTriangle : require ( './PlaceOnTriangle' ) ,
16+ PlayAnimation : require ( './PlayAnimation' ) ,
1617 RandomCircle : require ( './RandomCircle' ) ,
1718 RandomEllipse : require ( './RandomEllipse' ) ,
1819 RandomLine : require ( './RandomLine' ) ,
Original file line number Diff line number Diff line change 11var CHECKSUM = {
2- build : 'd9e724e0-1bee -11e7-84b6-498a4b612112 '
2+ build : '1fc4c990-1bf4 -11e7-a52f-5f7dcf3f36ad '
33} ;
44module . exports = CHECKSUM ;
Original file line number Diff line number Diff line change @@ -250,6 +250,13 @@ var Layer = new Class({
250250 return this ;
251251 } ,
252252
253+ playAnimation : function ( key , startFrame )
254+ {
255+ Actions . PlayAnimation ( this . children . entries , key , startFrame ) ;
256+
257+ return this ;
258+ } ,
259+
253260 randomCircle : function ( circle )
254261 {
255262 Actions . RandomCircle ( this . children . entries , circle ) ;
You can’t perform that action at this time.
0 commit comments