Forums

OverviewV-Play 1 SupportSingleSpriteFromFile gets scaled to 0.5 › Reply To: SingleSpriteFromFile gets scaled to 0.5

OverviewV-Play 1 SupportSingleSpriteFromFile gets scaled to 0.5 › Reply To: SingleSpriteFromFile gets scaled to 0.5
#6736

Christian
V-Play Team

An entiy has no size by its definition (it is only a container of children components). However, you can set your entity width to sprite.width and you are then able to read the entity size after you created it in your logic. Note that the width of the Sprite will always be the “logical size” aka the sd size, so in your case 44px (when the hd images are 88px big due to the content scaling and the sd are 44px). Does this solve your question?

Cheers, Chris

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