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

s4ge

Hi Christian,

the entity container is placed inside of the scene, the same scene defines the creation functions shown above, which dynamically generates the entities.

Since the entity container is inside my scene, and my scene size is 480×320, everythings should be finde if i place my 44×44 sprites every 44 pixels (loopVar * 44). But instead, i get a gap of exactly 44 pixels so twice of the position i gave, and the scale of the scene is 2.0 on the x axis. Now i place my entities taking the scale into account (x = loopVar * (44 / sceneXScaleforWindowHowever)). This works perfect so far, but i cant believe that this should be the default behavior. Could there be a delay between the scaling of the scene and my entity creation? Maybe i should let you know that the scene which holds the entities if neither visible or set as active scene when the entities become created.

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