Hi,

I have 3 different AnimatedSprite that I want to display, in parallel, at different "speeds".

title
testA
testB

Here is the behavior I try to obtain:

title is set on "pause" and display only the first sprite

testA loops once > when loop is finished:
- change testA opacity to 0
- display title NEXT frame
- change testB opacity to 1
testB loops once > when loop is finished:
- change testB opacity to 0
- display title NEXT frame
- change testA opacity to 1

It seems fairly simple but I can't do it, my QT / coding experience is non-existent even though I did a lot of scripting and macros work.



Qt Code:
  1. AnimatedSprite {
  2. id: title
  3.  
  4. z: 5
  5.  
  6. running: true
  7. paused: true
  8. opacity: 1
  9.  
  10. width: 300
  11. height: 10
  12.  
  13. x: 100
  14. y: 100
  15.  
  16. source: "qrc:/images/Titles/Y_titles___board___118-59___522-77.png"
  17.  
  18. frameCount: 2
  19.  
  20. frameWidth: 300
  21. frameHeight: 10
  22.  
  23. frameDuration: 1000
  24. interpolate: false
  25. }
  26.  
  27. AnimatedSprite {
  28. id: testA
  29.  
  30. z: 5
  31.  
  32. running: true
  33.  
  34. width: 10
  35. height: 10
  36.  
  37. x: 100
  38. y: 110
  39.  
  40. source: "qrc:/images/Titles/Y_titles___board___118-59___522-77.png"
  41.  
  42. frameCount: 50
  43.  
  44. frameWidth: 10
  45. frameHeight: 10
  46.  
  47. frameDuration: 1000
  48. interpolate: false
  49. }
  50.  
  51. AnimatedSprite {
  52. id: testA
  53.  
  54. z: 5
  55.  
  56. running: true
  57.  
  58. width: 10
  59. height: 10
  60.  
  61. x: 100
  62. y: 110
  63.  
  64. source: "qrc:/images/Titles/Y_titles___board___118-59___522-77.png"
  65.  
  66. frameCount: 50
  67.  
  68. frameWidth: 10
  69. frameHeight: 10
  70.  
  71. frameDuration: 1000
  72. interpolate: false
  73. }
To copy to clipboard, switch view to plain text mode 



Cheers,
--Jay