ok, so i hit a roadblock while developing on agk2 (tier 1). im trying to load these images as animation frames in the game and everything works fine on the pc but when i export as an apk and load it on mobile the application closes before it even finishes loading.
at first i thought it was the size of the images, im using 2 sprites which contain 23 images as animation frames. both the sprites have about 90kb worth of images so i dont think the size would make that much of a difference. also the dimensions for the images in sprite 1 are 357x608 and sprite 2 538x608 and they are .png format.
i tried seperating the images and creating a simple app to test them but they work fine in this version, so im thinking there has to be something wrong with the amount of images im using because the test app i created only has 24 images but the original app has about 250-270 .png images with a total size of about 6.00 mb.
i there a limit to the number of images agk can load or could it be from something else?
here is the code for the test app, ive also include the entire program in the downloads. im testing this on a cheap lg sunrise (1.2GHz dual-core Cortex-A7, Adreno 302 GPU with 512 MB RAM and 4 GB storage) and another cheap samsung captivate glide (Dual-core, 1000 MHz with 1024 MB RAM and 8 GB storage) (forgive me as i really dont much about computer/phone specs)
// Project: test images
// Created: 2015-11-01
// set window properties
SetWindowTitle( "test images" )
SetWindowSize( 1024, 768, 0 )
// set display properties
SetVirtualResolution( 1024, 768 )
SetOrientationAllowed( 1, 1, 1, 1 )
image_1=503 ``12
image_2=505 ``14
image_3=507
image_4=508
////////////////////////load image///////////////////////////////
loadimage ( image_1, "mm_image_1 (0).png" )
loadimage ( image_3, "mm_image_2 (0).png")
createsprite ( image_1, image_1 ) : setspritedepth ( image_1, 51 )
createsprite ( image_3, image_3 ) : setspritedepth ( image_3, 51 )
createsprite ( image_2, 0 ) : setspritedepth ( image_2, 51 ) ``image_small animation
createsprite ( image_4, 0 ) : setspritedepth ( image_4, 51 ) ``image_small animation
///////////////image anim 1//////////////////////////////////////////////////
for t=1 to 22 //22
AddSpriteAnimationFrame ( image_2, loadimage ("test_image_1 ("+str(t)+").png" ) )
next t
///////////////image anim 2//////////////////////////////////////////////////
for t=1 to 22 //22
AddSpriteAnimationFrame ( image_4, loadimage ("test_image_2 ("+str(t)+").png" ) )
next t
do
Print( ScreenFPS() )
Sync()
loop
assisstance with this issue will be appreciated