Collision in Tile Studio
Hi, i have tryed Tile Studio.
I made a map there for my rpg game, kinda large map in tile studio.
And i succeded to import it to OpenGL.
And now to the Question:
* How do i check the Collision ( if the playerX,Y hits a wall, or a stone. etc.)
i can do like this,
if(playerX < 2 ) // to check collision
But that would take extreamly long time if i have a big map, with stones and other things on.
So i hope that there is a faster and better way to check collision with/in Tile Studio.
please help me out.
//ty in advace
Does tile studio store any other meta information which might tell you that "this is a wall" other than say looking at the RBG values of the pixels?
I actually dont know.. dont know where to look.
it say here something about "whenever an object passes a bound, a collision occurs". (on the Tile Studio homepage)
but dont know if that means "collision detection".
That link talks about bounds, read about them.
hum.. if i get this right, about those bounds. when i load my map, then it also loads those bounds, if i have made some of them. Then you can check if an Object (player) hits them, and then do something.
(so you could check collision with them ?)
Or, am i wrong ?
Part of the data you import, you pass to OpenGL (this you've done).
Another part of the data you import for collision detection, which you've yet to do.