2D Toolkit Forum

2D Toolkit => Support => Topic started by: JBabz on July 10, 2013, 05:08:42 pm

Title: [QUESTION] [2.1 BETA] Wierd Tilemap Compile Error
Post by: JBabz on July 10, 2013, 05:08:42 pm
Does anybody know what might be causing these compile errors from the tilemap file in the new 2.1 beta?
I'd really like to use the tilemap object..
Any clues as to what could be causing this?
(http://imageshack.us/a/img823/8471/p1wh.png) (http://imageshack.us/photo/my-images/823/p1wh.png/)

Uploaded with ImageShack.us (http://imageshack.us)
Title: Re: [QUESTION] [2.1 BETA] Wierd Tilemap Compile Error
Post by: unikronsoftware on July 10, 2013, 05:33:09 pm
Do you use javascript?
Title: Re: [QUESTION] [2.1 BETA] Wierd Tilemap Compile Error
Post by: unikronsoftware on July 10, 2013, 05:34:10 pm
To troubleshoot, you could import into an empty project, and then compare the directories...
Title: Re: [QUESTION] [2.1 BETA] Wierd Tilemap Compile Error
Post by: 1337Rooster on September 06, 2013, 04:05:17 am
I had the same problem. I encountered this because I made a class called Layer in the default namespace. You might be conflicting with a class name. I think there are some classes in the default namespace that come with tk2d, specifically there is one called Layer.
Title: Re: [QUESTION] [2.1 BETA] Wierd Tilemap Compile Error
Post by: unikronsoftware on September 06, 2013, 02:26:50 pm
Ah that makes a lot more sense now. You can fix it by using fully qualifiied names in the tk2dTileMap class.