Hi,
I am trying to position two items (an image and a spritesequence) on the z axis.
When I use SpriteSequence the sprite appears above the image even though the z value is less than that of the image
EntityBase{
id: menubg
z: 1
Image {
//id: sprite
width:480
height:320
z: 1
source: "img/menubg.png"
}
}
EntityBase{
id:headbob
z:0
x: 10
y: 40
SpriteSequence{
spriteSheetSource:"img/headbob.png"
Sprite {
scale: .3
id: sprite
frameWidth: 383
frameHeight: 310
frameCount: 12
startFrameColumn: 1
frameRate: 10
}
}
}
But if I use an image or just sprite the positioning comes as expected. Is this a bug?
EntityBase{
id: menubg
z: 1
Image {
//id: sprite
width:480
height:320
z: 1
source: "img/menubg.png"
}
}
EntityBase{
id:headbob
z:0
x: 10
y: 40
Sprite {
source: "img/headbob.png"
scale: .3
id: sprite
frameWidth: 383
frameHeight: 310
frameCount: 12
startFrameColumn: 1
frameRate: 10
}
}