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 / Odd sized Sprites

Author
Message
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 9th Apr 2012 20:38
I came across a very strange problem.

If I have an odd sized sprite 87x93, all works fine on Windows.

On iOS the bottom line (1 pixel height) is always cut off!!!

A sprite of 87x94 works fine!

This happens only along the vertical height. horizontally all works fine, even if the sprite is odd sized!

Don't tell me to use Atlas files, they are impossible to work with!!!!
Kobaltic
12
Years of Service
User Offline
Joined: 24th Jan 2012
Location: PA, USA
Posted: 10th Apr 2012 07:02
It has to do with AppGameKit auto correcting feature. It doesn't like odd sizes.

Back in the day you had to work in powers of two. If you stick to that you will never have a problem.
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 10th Apr 2012 10:08
Just adjusted my photoshop export script, it now always aligns sprites to even size. Seems to be working GREAT!!!

strangely the problem only happened across vertically NOT horizontally.
Rich Dersheimer
AGK Developer
14
Years of Service
User Offline
Joined: 1st Jul 2009
Location: Inside the box
Posted: 10th Apr 2012 18:26 Edited at: 10th Apr 2012 18:27
bj, atlas files are not impossible, they can be very handy!

But, as I've asked about in a post, they seem to add to the execution time when loading in the subimages.

EDIT: and thanks for catching that glitch, I'll be sure to look closely at any odd sized sprites I have vis-a-vis iOS!
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 10th Apr 2012 19:32
Didn't notice any additional execution time on my ipad3. but i only had 4 1024x1024 atlas textures

Login to post a reply

Server time is: 2024-05-08 17:08:26
Your offset time is: 2024-05-08 17:08:26