Alternative to CHANGE IMAGE

glyniusglynius Member Posts: 231
edited September 2012 in Working with GS (Mac)
Hi, i am near to finish my application and i am stacked to crashes to viewer and ad hoc.
I found out that the problem is to one actor, i use it to display a background image and i have
15 more backgrounds images for the user to select. I use a behavior CHANGE IMAGE to change the image
according to user selection. This is what crashes the app. My images are 1 mb each, so i guess that when
it tries to load 16mb at once, it crashes, even if i say that this images will be changed according to selection.
Is there any alternative way to change all these background images without loading them on memory from the beginning?

Comments

  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    Change attribute self.image will work. I don't every use the change image function anymore.

    You can also try I checking preload art, that basically does the same thing.
  • glyniusglynius Member Posts: 231
    jonmulcahy
    Thank you man! this is what i was looking about, hope that this will solve my crashes.
    THANKS!
  • glyniusglynius Member Posts: 231
    I've replaced the CHANGE IMAGE with self.image.
    Meantime i upgraded my iphone to IOS6, and the application had no crashes on viewer.
    Then i tried to view it from ipad (older IOS), but it still crashes there...same as to my wife's iphone with previews IOS... what shall i do to make it run on previews IOS?
  • KiwiLeeKiwiLee Member Posts: 181
    1mb seems large for a background.....
  • glyniusglynius Member Posts: 231
    Really? but i can't reduce it, i tried everything but because it is a background room i can't reduce anymore the png. So you believe that this is the problem with the crashes?
  • JGary321JGary321 Member Posts: 1,246
    If it does not have transparency, make sure to save as PNG-8. Reduces size a lot.
  • 3xL3xL Member Posts: 676
    edited September 2012
    use imageAlpha! best compression tool i ever used and its free
  • glyniusglynius Member Posts: 231
    Maybe the problem with the crashes, is not related with the images...I found out that some behaviors for controlling the scene camera, maybe are causing the conflict. I will make some loads on iphone and ipad and i will let you know. Thanks everybody for your assistance.
  • glyniusglynius Member Posts: 231
    According to PNG size, i really reached the minimum limit of the quality i want for my backgrounds, we spend a lot of time for the 3D to make super realistic rooms, and i don't want to reduce anymore than 1MB per file the quality. The overall application is 45MB and when it runs it runs smoothly without any problem. I
Sign In or Register to comment.