Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / SetSetSpriteAnimation bugged on android

Author
Message
The Zoq2
15
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 6th May 2012 00:40
Hi, im having a pretty big problem with my game. Since 1070, SetSpriteAnimation has been bugged on android (And on PC to), but another bug.

The problem im having is that, no matter how few animation frames, or how small frames I make, the player returns the error "image does not contain enough animation frames...". And instead of creating a small image as it should, it displays the whole image.

This is the code im using


On PC, this works as it should, but there was another bug when I did this



No matter what I did, as long as the ser sprite animation was present, the sprites didn't show up...

I allso posted this bug on agk's google code page
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 6th May 2012 00:56 Edited at: 6th May 2012 01:16
That sounds like an awfully big image file. Your animation is 512x512 and 5 or 6 frames? That is an image size of 3072? That would definitely cause issues on an android, I think the maximum is 2048x2048, and only on fairly decent androids at that.
What image size are you using?

Edit - Just tried your player with Obliterator, works great. No problems with animations there. I use both addanimationframe and setspriteanimation liberally in that.

The Zoq2
15
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 6th May 2012 09:33 Edited at: 6th May 2012 10:19
The immages are big but this code worked before 1070... I guess i'll try and make them smaller...

EDIT

I don't think the size of the images is the problem, since one of them is just 1536x512...

EDIT 2

It may be the size of the images that is the problem afterall, I tried it witha 1 frame image and it worked fine...
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 6th May 2012 10:34
only on ipad 3 2048x2048 images are allowed.

rest of devices its 1024x1024
The Zoq2
15
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 6th May 2012 12:16
Oh, that's weird since it worked i 1065. Anyway, I got rid of the animations completley and made 1 image for the rotor wich I rotate manualy.
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 6th May 2012 18:20
If you are using animated sprite sheets you need ^2 sized files also. For android at least.

Login to post a reply

Server time is: 2024-11-23 10:36:01
Your offset time is: 2024-11-23 10:36:01