Hello,
I've been having a really difficult Tier 2 Android AppGameKit 1076 image loading problem.
So what's happening is that regular images won't load (they get the checkerboard RED X ) but atlas images load fine.
All the images are in the same folder assets/media
So here is some clips from my actual app
image that does *NOT* work
agk::LoadImage(10,"media/lucksplash.jpg");
agk::CreateSprite(10,10);
agk::SetSpritePosition(10, 0,0);
agk::SetSpriteSize(10, 640,960);
agk::SetSpriteTransparency(10,0);
images that *DO* work
agk::LoadImage(999,"media/tiles1.png");
agk::LoadSubImage(1001,999,"grass1.png");
agk::CreateSprite(400,1001);
agk::SetSpritePosition(400,100,100);
agk::SetSpritePhysicsOn(400,1);
agk::SetSpriteDepth(400,50);
agk::SetSpriteTransparency(400 ,1); // transparency OFF
Additional things I checked
- triple verified case SENSiTiviTY of the file names and paths
- tried changing them all to .PNG's (since the atlas image was a .png I thought there might be something to it but no..)
- tried moving images to the /assets/ folder rather than /assets/media/
- used the agk::SetCurrentDir(""); to set both "" and "/media" (different attempts) , and with both variants moved files between the assets and media folder
- changed the image path in case it was / vs \ problem from "media/lucksplash.jpg" to "media\lucksplash.jpg"; same problem
- placed the images in BOTH locations /assets and /assets/media
- my image is 640x960 so I changed it to 640x1024 in case something was not liked about the 960 size
- resized the image to 320x480
- totally rebuilt the project from Ancient Lady's Wiki 1076 template ( using the 1076 default as a base then copying in her files)
- used the base 1076 template and rebuilt it twice also
Any help, advice, or things to check that I've missed greatly appreciated!
Thanks