Forums

OverviewV-Play 1 SupportImage Positioning on the z-axis › Reply To: Image Positioning on the z-axis

OverviewV-Play 1 SupportImage Positioning on the z-axis › Reply To: Image Positioning on the z-axis
#6028

Alex
V-Play Team

Hi,

the advantage of using spritesheets is that all sprites are drawn in one draw call. This also means they are all drawn in one logical layer. You can define the position of that layer using the SpriteBatchContainer. If you don’t make use of the Container, the sprites will be drawn last, on top of all other items (that’s what you are experiencing in your first example).

So you can either find a good place for the SpriteBatchContainer, or put everything that should be on top of the sprites into a spritesheet too, and also use it with the SingleSprite… and SpriteSequence… components.

 

By the way, why are you using an EntityBase for your menubg? This component is normally meant to be used for game entities.

Best Regards,
Alex

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