Bacon2D/Bacon2D

Refactor Sprite elements

rogerzanoni opened this issue · 4 comments

Refactor Sprite elements
  • Stop animations when scene is paused

It should be possible to resize the sprite! Reference for implementation:
http://code.woboq.org/qt5/qtdeclarative/src/quick/items/qquickanimatedimage.cpp.html

Found more issues on sprites:
1 - An SpriteAnimation cannot be pause/resumed. At least when you set running to false it just don't draw anything. I think it should pause the animation and let the user decide whether or not to show in the sprite element or have a pause property.

2 - The Sprite always set the current animation to running = true after Sprite created. So even if you set running: false in qml it animates when the game starts.

3 - I have an sprite with 3 frames. But want to use just 2 in a animation. how can i do it?