Forums

OverviewV-Play 2 Support (Qt 5)How to set the scale for sprites in sequence › Reply To: How to set the scale for sprites in sequence

OverviewV-Play 2 Support (Qt 5)How to set the scale for sprites in sequence › Reply To: How to set the scale for sprites in sequence
#9641

Sam

Thank you. Actually I have 4 images of 4 sides of a tree and each one is 256×512 pixels, I just put them all horizontally in one sprite sheet image, so the result is 1024×512 pixels. So depends on your suggestion, the code would be:

 

SpriteSequenceVPlay {
    // scale: 0.1
    width: 256 * 0.1
    height: 512 * 0.1
    
    SpriteVPlay {
        source: "../assets/img/Tree.png"
        frameCount: 4
        frameWidth: 256
        frameHeight: 512
        frameRate: 4
    }
}

 

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support