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
#6733

s4ge

Does that mean that if i have a sprite, which physical size is 44×44, that i cant place them every 44 pixels through a loop? That is the actual problem. I mean, as you can see when you run my project, the sprites ARE 44×44 rendered, but i cant place them every 44 pixels without having a gap of 44 pixels. on the other hand, when i draw rectangles which are 44×44, they become double sized (in the same scene where the sprite dimensions still being unscaled, but the coordinates ARE scaled), and also can’t place them every 44 pixels, instead i have to place them every 88 pixels. Seems like there is no “normalized” behavior of the scaling between native components and loaded images.

 

Edit: Well i guess i got the problem/understood what i used to not understand. Will an entity without explicit size auto grow on its child dimensions? This way, i could read out the size for my loop dynamically.

  • This reply was modified 4 years, 4 months ago by  s4ge.

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