New Post: Index problem
I'm trying to make a collision system for my game, however I am encountering a problem when trying to get the layers of my map file. I get an error at this linecollision = map.Layers[3]; It says "Index...
View ArticleNew Post: Getting Tile Info
Anyone have sample code of how to reference the tiles in the map for collision detection, I have yet to figure it out even with these examples. I have a 2 layers a "walls" layer and a "floor" layer....
View ArticleNew Post: Index problem
Layer indices are zero-based. So if your map has, say, 3 layers, you can access them via indices 0, 1 and 2 (not 1, 2 and 3).
View ArticleNew Post: Getting Tile Info
There is a sample in this very thread if you look carefully enough. There are also plenty of answers throughout the forum.
View ArticleNew Post: Index problem
Yea, I figured it out, there was a problem somewhere else in my code causing that, thanks!
View ArticleNew Post: collision detection
I'm currently trying to make a 2D platformer game and I'm using a similar method of detecting collision as the ones discussed in these threads where define a newPosition and check the tile at the...
View ArticleNew Post: tIDE maps now supported by libGDX
The libGDX desktop/Android/iOS/HTML5 Java game development framework now supports the .tide map format. More details here.
View ArticleNew Comment on "xTile Engine Tutorial for Game Studio / XNA 4.0"
For those using express edition and unable to add solution folders you need to do the following: Copy "xTile.dll" and "xTile.Pipeline.dll" into your projects main directory(where the code is, not the...
View ArticleNew Post: Farseer Physics?
I was looking for this as well and finally stumbled upon someone who integrated Farseer, Game State Management, and xTile. You can find it here:...
View ArticleNew Post: Farseer Physics?
Oh wow thanks colinvella. I always heard about Farseer being a port of Box2d but I never paid much attention to it. After reading up on it now it all clicks about them using the same stuff Box2d uses....
View ArticleNew Post: OSX support
Hey Are there any plans for supporting OSX? If not, how trivial would it be to get it running on OSX? Any pointers? Thanks
View ArticleNew Post: OSX support
I have no immediate plans for porting xTile to OSX myself, however I suggest checking out libGDX. It runs on OSX (and iOS, Android amongst others) and now supports Tide maps.
View ArticleNew Post: OSX support
Thanks for the reply. libGDX is not really viable I'm afraid as I'm working with Monogame and am looking for a decent tile library, rather than write my own. I'm quite happy running tide and then...
View ArticleNew Post: OSX support
Someone did manage to get it to work with Monogame. Have a look at this thread.
View ArticleNew Post: Hey, I need help.
Hi, I write to you because I'm currently developing a videogame. I have tried to implement an scalating system on your DLL, but I always get this blury effect with the tiles. Could you help me make the...
View ArticleNew Post: Hey, I need help.
If you're scaling up you cannot really avoid the blurring. I would suggest developing large graphic assets and only scale down as necessary. Also, I think your code can introduce gaps or overlaps...
View ArticleNew Post: Hey, I need help.
I solved the problem. I'll leave the code around here, in case you want to use it in you project.///////////////////////////////////////////////////////////////////////////// // // // LICENSE Microsoft...
View ArticleNew Post: Help with collision
I have this error tile index out of bound I use this code public bool getCollision(Vector2 posf,Layer Collision,int TileIndex,float scale, vars v) { tileLocation = new Location((int)((int)posf.X / 8*3...
View Article