Image Scaling problem

Hello!

I need some help, when transitioning from windows to mac to test build my device and run on the xcode simulator i hit many problems that i later fixed with my images.

One problem i have been having and can’t seem to fix is my 5 background images.
My game is just a simple platform game with a scrolling background, the character is a balloon so it can also move up and the first image goes down with a speed of half the platforms and the 2nd background goes half of that and so on.

My problem is that all 5 of these images ( and nothing else in my entire game ) is scaled to about half their size. These images are in the same display group ( so are other things ). I have tried everything, I tried a simple CloudLayer.xScale = 2 and CloudLayer.yScale = 2 and that made them the right size but very blurry, i have looked up and own through the entire code looking if i somewhere scaled them down ( which i didn’t ), i have tried making a copy of the image but making the image 2000 by 2000 ( it is 1000 by 1000 before to allow the background to scroll ) and it still was the same size, i tried making a half-sized one, so 500 by 500 and for some reason it was still the same size on both the simulator and the xcode simulator. Oh and i tried putting it into a the local display group ( i’m using director for screen-transition ), and i also played with the config scale part changing it to letterbox and none ( and all the others ) with no effect at all.

Does anyone have any idea what is going on? [import]uid: 113909 topic_id: 29953 reply_id: 329953[/import]

Oh and by the way, everything works on the windows simulator, and i’m having the problem on the mac simulator and the xcode simulator, also no errors are showing in the terminal [import]uid: 113909 topic_id: 29953 reply_id: 120155[/import]

Hi there,

How are you loading the images? Are you using [lua]display.newImage[/lua] or [lua]display.newImageRect[/lua]?

  • Andrew [import]uid: 109711 topic_id: 29953 reply_id: 120156[/import]

Thank you!

I changed the display.newImage to the display.newImageRect and i worked just as i needed it to, so everything is in working condition.

much appreciated,

-Boxie [import]uid: 113909 topic_id: 29953 reply_id: 120159[/import]

Oh and by the way, everything works on the windows simulator, and i’m having the problem on the mac simulator and the xcode simulator, also no errors are showing in the terminal [import]uid: 113909 topic_id: 29953 reply_id: 120155[/import]

Hi there,

How are you loading the images? Are you using [lua]display.newImage[/lua] or [lua]display.newImageRect[/lua]?

  • Andrew [import]uid: 109711 topic_id: 29953 reply_id: 120156[/import]

Thank you!

I changed the display.newImage to the display.newImageRect and i worked just as i needed it to, so everything is in working condition.

much appreciated,

-Boxie [import]uid: 113909 topic_id: 29953 reply_id: 120159[/import]