Author Topic: Big tiles giving issues  (Read 717 times)

Esti

  • Active Member
  • ***
  • Posts: 104
  • Karma: +0/-0
    • View Profile
Big tiles giving issues
« on: Mon, Oct 22, 2012 »
I am using DAME and I have some big tiles that are 70x70. This is the file, this are free placeholders.

The thing is when I exceed 40x40 in tile size this returns null
Code: [Select]
tile = _tileObjects[_data[rowStart+column]] as FlxTile; and then I recieve an error and the colision breaks

Code: [Select]
TypeError: Error #1009: No se puede acceder a una propiedad o a un método de una referencia a un objeto nulo. this means "can't access a property or method of a reference to a null object".

this is my level class code:

Code: [Select]
map = new FlxTilemap;
map.loadMap(new mapCSV, mapTilesPNG, 70,70, 0, 0, 1, 1);

I tried changing a lot of stuff and it works if I put 40x40 in the width and height.

Check it out on Mochi!

Esti

  • Active Member
  • ***
  • Posts: 104
  • Karma: +0/-0
    • View Profile
Re: Big tiles giving issues
« Reply #1 on: Mon, Oct 22, 2012 »
Solved.

I had some invisible inexistent tiles somewhere on the DAME data. Freaking waste of time. |-I

Anyway, I used this tiles http://opengameart.org/content/platformer-tiles if anyone wants to use some nice graphics.

Check it out on Mochi!

Jeff

  • Active Member
  • ***
  • Posts: 127
  • Karma: +0/-0
    • View Profile
    • Entertainment Evolution
Re: Big tiles giving issues
« Reply #2 on: Mon, Oct 22, 2012 »
I was just about to send a reply, where I was asking if you tried other sizes, but apparently it wasn't about the size at all. :)

Neat looking graphics. I actually recognized the game they were from, since I've tested it on FGL.
Please give me feedback for my latest game in progress:
Blog: Entertainment Evolution