We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4332715 commit dd2daa0Copy full SHA for dd2daa0
playground/graphics/graphics-5-animations.md
@@ -9,10 +9,13 @@ graphicEntityModule.createSpriteAnimation()
9
.setImages(heroSprites)
10
.setX(hero.getX())
11
.setY(hero.getY())
12
- .setDuration(2000)
+ .setDuration(100)
13
.setLoop(true)
14
.setPlaying(true);
15
```
16
+It should look like this :
17
+
18
+
19
- `setImages(heroSprites)`: set a `String` array containing the filenames of the sprites.
20
- `setX(hero.getX())`, `setY(hero.getY())`: set the position.
21
- `setDuration(2000)`: set how long the whole animation takes to be played (in milliseconds).
playground/graphics/resources/hero.gif
83.3 KB
0 commit comments