Image coming out as white box

expired_012expired_012 Member Posts: 1,802
edited November -1 in Working with GS (Mac)
i placed my image in the actor, and it works fine on the GS preview. When I test it on the GS viewer on my device though it comes out as a white box. Anyone know what this could be?

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    iphone 4?
  • expired_012expired_012 Member Posts: 1,802
    Yes
  • AjBlueAjBlue Member Posts: 215
    do you have resolution independance on with a image file twice as big as the actor in the game???
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    I remember seeing a couple threads about this, on iphone 4 sometimes the images have a box aroudn them, or come out white. Just search the threads for this and youll find something that will help :) I remember one of the threasd firemaple had a fix for it, i dont reemeber if that was for the box around it or white image though.
  • expired_012expired_012 Member Posts: 1,802
    @John, FMG had black lines or something around the image, thats a different issue.

    @Ajblue, RI is unchecked, actor and image are both 100x100
  • AjBlueAjBlue Member Posts: 215
    @arton

    in order for games to work correctly on the iphone 4, you need to make your images twice the size than they are on stage, and turn on resolution independance . try that and see if thats the problem
  • expired_012expired_012 Member Posts: 1,802
    AjBlue said:
    @arton

    in order for games to work correctly on the iphone 4, you need to make your images twice the size than they are on stage, and turn on resolution independance . try that and see if thats the problem

    I don't know where your getting that from, but I don't think thats true. Just because a game doesn't support retina display graphics doesn't mean that the graphics wont show on an iphone 4
  • AjBlueAjBlue Member Posts: 215
    well: http://www.youtube.com/user/gendaigames#p/u/22/gaR6p7AnkJo

    i was just saying its possible that your getting that bug because of it. if you can figure it out submit the bug to gamesalad maybe they can help you
  • expired_012expired_012 Member Posts: 1,802
    Ok, so I tried checking RI and the graphics now show, but I didn't have to double their size. The only problem is, why would I want RI checked if my game doesn't even support retina display graphics? So is there any other solutions without having to check resolution independence?

    Thanks
  • AjBlueAjBlue Member Posts: 215
    how doesn't you game support retina display graphics, when you are testing it on a iphone 4??
  • expired_012expired_012 Member Posts: 1,802
    @ajblue, I don't get what you mean. I'm not supporting retina display because I want to stay under the 20mb limit. Just because I am testing on an iPhone that doesent mean I need retina display graphics. You can use low red graphics, they will just not look as good on an iPhone 4. Please explain what you mean.

    Any other help is appreciated as well
  • butterbeanbutterbean Member Posts: 4,315
    @Arton: I had the same problem, and what I did to resolve it was I deleted the actor from the scene, and the image itself, reuploaded it, and dropped it into the scene again.

    Seemed to solve the problem. Not sure why the image was turning up white as it was within the size requirements and all, and it only happened once to me as well.

    Let me know if this helps :)
  • expired_012expired_012 Member Posts: 1,802
    @BB, thanks for the suggestion. I have already tried that several times but with no luck :(
  • ScootsScoots Member Posts: 507
    Leave RI checked and just delete the x2.png's in images on your ahdoc. Curious if that will show images or white
  • HoneyTribeStudiosHoneyTribeStudios Member Posts: 1,792
    Did anyone solve this one? My game had been working fine for ages, no image problems at all.

    Now suddenly my speech bubble images, which are showing up fine on the GS preview, are blank white rectangles on both a 2nd gen ipod and iphone 4 using GS viewer.

    I have changed the code to make it easier though: change image to "MyImage"..attribute..".png"
    I hope that's not the problem as its much better than creating multiple rules with an image change behaviour in each one.

    Deleting and re-adding the images hasn't worked either.
  • expired_012expired_012 Member Posts: 1,802
    @shaz, my problem was that the image was really large in file size. After optimizing it, it worked fine.
  • HoneyTribeStudiosHoneyTribeStudios Member Posts: 1,792
    Hmm, ok. Mine are only around 100x80. Been searching around the forum, still not found an answer. I hate it when these seemingly random oddities occur...!
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    shaz said:
    Did anyone solve this one? My game had been working fine for ages, no image problems at all.

    Now suddenly my speech bubble images, which are showing up fine on the GS preview, are blank white rectangles on both a 2nd gen ipod and iphone 4 using GS viewer.

    I have changed the code to make it easier though: change image to "MyImage"..attribute..".png"
    I hope that's not the problem as its much better than creating multiple rules with an image change behaviour in each one.

    Deleting and re-adding the images hasn't worked either.

    Your images must be named exactly how the Rules calls for them. its even case sensitive so Myimage.png is different from myimage.png That is generally the problem when there is a white box on device and its visible in normal preview
  • expired_012expired_012 Member Posts: 1,802
    @shaz, how large the image file is (200kb, 1mb, etc), not the dimensions. Also make sure to save as png-24.
  • HoneyTribeStudiosHoneyTribeStudios Member Posts: 1,792
    Ah, yeah you're right - I hadn't spotted my lower case 'S'!

    Thanks for the help tenrdrmer
Sign In or Register to comment.