Forums

OverviewV-Play 1 SupportPerformance: spritesheets and particles › Re: Performance: spritesheets and particles

OverviewV-Play 1 SupportPerformance: spritesheets and particles › Re: Performance: spritesheets and particles
#4103

Christian
V-Play Team

Hey Chris & Alex,

thanks you so much for helping all the time :)

The build is working fine again.

I considered your hint for the particles, and it turns out i can set maxParticles to as low as 25 and still get it to look nice :)

As for the sprites, I’m afraid i didn’t get it to work by now.

I use this inside my EntityBase-objects:


    SingleSpriteFromFile {
        id: sprite
        source:  item.sprite
        filename: "../resources/sprites/sprites.json"
        anchors.left: parent.left
        anchors.top: parent.top
    }

With sprites.json being generated by TexturePacker (actually sprites-hd.json and so on).

Everything is drawn correctly, but the sprites appear on top of everything else (I would sometimes like to place a menu or a text on top of a sprite) and they don’t seem to be ordered when the z of their parent (The EntityBase object) changes.

But at least they are in correct z-order when they are first loaded.

So your fix didn’t change anything for now, or could it be that I’m missing something?

Cheers,
Christian

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