1 decade ago by Montana
Bug:
When going down a slope player is in "idle" state.
When going up a slope player is in "fall"state.
1.To reproduce build a small half pipe with slope tiles.
2. Run with no animations except fall.
3. See how the plyer animates when going up slope:
1.To reproduce build a small half pipe with slope tiles.
2. Run with no animations except idel.
3. See how the player animates when going down slopes:
When going down a slope player is in "idle" state.
When going up a slope player is in "fall"state.
1.To reproduce build a small half pipe with slope tiles.
2. Run with no animations except fall.
3. See how the plyer animates when going up slope:
init: function( x, y, settings ) { this.parent( x, y, settings ); // Add the animations this.addAnim( 'idle', 1, [0] ); this.addAnim( 'run', 1, [0]); this.addAnim( 'jump', 1, [0]); this.addAnim( 'fall', 0.07, [0,1,2,3] ); },
1.To reproduce build a small half pipe with slope tiles.
2. Run with no animations except idel.
3. See how the player animates when going down slopes:
init: function( x, y, settings ) { this.parent( x, y, settings ); // Add the animations this.addAnim( 'idle', 0.07, [0,1,2,3] ); this.addAnim( 'run', 1, [0]); this.addAnim( 'jump', 1, [0]); this.addAnim( 'fall',1, [0 ); },