New answers tagged

0

Converting mouse coordinates into tiles coordinates is quite simple, as long as you know the width and height of your tiles. All you need to do is, converting mouse coordinates into world coordinates, then performing simple math to get the indexes of the tile the cursor in lying on. Let's have an example. A small grid We have an 8x8 grid consisting of ...


0

I found a discrepancy between the Tiled Map Editor and the nature of the int data type. When in an object layer, you must make sure each of the objects have no decimal values, either in their width, height, X, or Y location. Because an int cannot support decimal values (you could edit slick's code to support a double data type if you needed a decimal value) ...



Top 50 recent answers are included