GLBasic forum

Main forum => GLBasic - en => Topic started by: Alex_R on 2010-Sep-22

Title: Tiles performance for iPhone
Post by: Alex_R on 2010-Sep-22
I'm making an RPG with several tiles per map. I think is better and fast to put all this map tiles in a unique .png file 1024x1024, but I don't know the best way to split the png into 64x64 sprites. Most of you (I believe) use GRABSPRITE but in the manual it says "On the iPhone, this command only works in Portrait mode." and I think is very slow, isn't it?

What about use instead LOADANIM? Do I get best performance? Does it work properly in iPhone?
Title: Re: Tiles performance for iPhone
Post by: Kitty Hello on 2010-Sep-22
LOADANIM is nice. If you go for a polyvector solution it will probably be faster.
Title: Re: Tiles performance for iPhone
Post by: Wampus on 2010-Sep-22
Yeh, POLYVECTOR is best for performance. LOADANIM is easier to use.

RE: The map made out of 64 x 64 tiles for the RPG, is this map going to zoom in and out or rotate at all? If not, no worries. If so, you might want to look at this thread: http://www.glbasic.com/forum/index.php?topic=5057.0 (http://www.glbasic.com/forum/index.php?topic=5057.0)
Title: Re: Tiles performance for iPhone
Post by: Alex_R on 2010-Sep-23
Many thanks guys!!  :)