Page 1 of 1

Best way to determine which tile animpos is collidable?

PostPosted: Tue May 07, 2013 9:00 pm
by Hblade
Hi, me again =D I was wondering what the best way to determine collidable tiles would be. It would be based off animpos (since thats how the tile editor works =D) Would you be able to do something like this?
Code: Select all
int CollidableTiles={1, 5, 12, 15, 25, 64};

as an example?

I need to know the most effective way =) because the tileset I'm using (The knight one :D) has a poop ton of tiles if divided by 32 (to make 32 x 32 size)

Re: Best way to determine which tile animpos is collidable?

PostPosted: Wed May 08, 2013 7:18 pm
by skydereign
One of the fastest ways is to just use an array, using values 0 and 1. That way you can use if(array[animpos]==1).

Re: Best way to determine which tile animpos is collidable?

PostPosted: Wed May 08, 2013 7:55 pm
by Hblade
Thanks