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.
AnimatedSprite {
id: title
z: 5
running: true
paused: true
opacity: 1
width: 300
height: 10
x: 100
y: 100
source: "qrc:/images/Titles/Y_titles___board___118-59___522-77.png"
frameCount: 2
frameWidth: 300
frameHeight: 10
frameDuration: 1000
interpolate: false
}
AnimatedSprite {
id: testA
z: 5
running: true
width: 10
height: 10
x: 100
y: 110
source: "qrc:/images/Titles/Y_titles___board___118-59___522-77.png"
frameCount: 50
frameWidth: 10
frameHeight: 10
frameDuration: 1000
interpolate: false
}
AnimatedSprite {
id: testA
z: 5
running: true
width: 10
height: 10
x: 100
y: 110
source: "qrc:/images/Titles/Y_titles___board___118-59___522-77.png"
frameCount: 50
frameWidth: 10
frameHeight: 10
frameDuration: 1000
interpolate: false
}
AnimatedSprite {
id: title
z: 5
running: true
paused: true
opacity: 1
width: 300
height: 10
x: 100
y: 100
source: "qrc:/images/Titles/Y_titles___board___118-59___522-77.png"
frameCount: 2
frameWidth: 300
frameHeight: 10
frameDuration: 1000
interpolate: false
}
AnimatedSprite {
id: testA
z: 5
running: true
width: 10
height: 10
x: 100
y: 110
source: "qrc:/images/Titles/Y_titles___board___118-59___522-77.png"
frameCount: 50
frameWidth: 10
frameHeight: 10
frameDuration: 1000
interpolate: false
}
AnimatedSprite {
id: testA
z: 5
running: true
width: 10
height: 10
x: 100
y: 110
source: "qrc:/images/Titles/Y_titles___board___118-59___522-77.png"
frameCount: 50
frameWidth: 10
frameHeight: 10
frameDuration: 1000
interpolate: false
}
To copy to clipboard, switch view to plain text mode
Cheers,
--Jay
Bookmarks