Skip to content

Commit

Permalink
Merge pull request #7 from prestia/patch-1
Browse files Browse the repository at this point in the history
Updated animation code to look smoother.
  • Loading branch information
Gama11 committed Feb 10, 2014
2 parents 589ddee + 1d15ae6 commit 17e589c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions documentation/02_handbook/05-FlxSprite.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Flixel supports spritesheet animation.
![](/images/sprite-animation-example.png)

```haxe
player.loadGraphic("assets/player.png", true, true, 32, 32);
player.animation.add("walk", [0, 1, 2, 3], 5, true);
player.loadGraphic("assets/player.png", true, true, 32, 36);
player.animation.add("walk", [0, 1, 0, 2], 5, true);
player.animation.play("walk");
```

0 comments on commit 17e589c

Please sign in to comment.