2D Toolkit Forum

2D Toolkit => Support => Topic started by: Bridgeman on August 12, 2014, 08:16:38 pm

Title: Tileset not working
Post by: Bridgeman on August 12, 2014, 08:16:38 pm
I imported a custom tileset by following this tutorial: http://www.unikronsoftware.com/2dtoolkit/doc/2.4/tilemap/tutorial.html

But when I go to paint none of my tiles are showing up
Title: Re: Tileset not working
Post by: Bridgeman on August 13, 2014, 10:59:55 am
Bump
Title: Re: Tileset not working
Post by: unikronsoftware on August 13, 2014, 11:23:39 am
Can you create sprites from this sprite collection? Do you see the tiles in the tilemap editor palette?
Title: Re: Tileset not working
Post by: Bridgeman on August 13, 2014, 11:41:07 am
Yes I do, I click Create, then Sprite Sheet, set my tile size and all that, and click Commit. But then when I create a TileMap and select my Sprite Collection, I can't see any tiles whatsoever
Title: Re: Tileset not working
Post by: unikronsoftware on August 13, 2014, 12:15:05 pm
Can you create a new sprite and assign this sprite collection. Can you see your tiles there?
Title: Re: Tileset not working
Post by: Bridgeman on August 13, 2014, 12:24:23 pm
I can create a new sprite sheet, and I can see my tiles fine in the SpriteCollection Editor, but when I go to the Tilemap object no tiles are visible at all
Title: Re: Tileset not working
Post by: unikronsoftware on August 13, 2014, 01:56:49 pm
You havent answered my question. Can you create a new sprite in the scene, and then assign this sprite collection to it. If you do that, do you see the tiles?
Title: Re: Tileset not working
Post by: Bridgeman on August 13, 2014, 03:01:42 pm
Can you walk me through it? I don't really understand what you mean exactly
Title: Re: Tileset not working
Post by: unikronsoftware on August 13, 2014, 03:09:08 pm
In the hierrarchy window,
Create > 2D Toolkit > Sprite.

Select the sprite collection you just created, and see if it draws correctly on screen and that all your sprites are available in the picker
Title: Re: Tileset not working
Post by: Bridgeman on August 13, 2014, 04:41:50 pm
I can create a sprite, but then I get the heart sprite on my screen, which is not what I want. I want to use a tileset. So I followed the tutorial on how to do that, and it said I had to create a TileMap in the hierarchy window and link it to my spritecollection I created in the assets window. But the problem is the tileset doesn't show up in the TileMap when I try to paint.
Title: Re: Tileset not working
Post by: unikronsoftware on August 13, 2014, 04:50:21 pm
"I can create a sprite, but then I get the heart sprite on my screen"
Can you switch to your new sprite collection for the tilemaps? Does that work?
If not post a zipped project. tilemaps and sprites use the same data. I dont know if you've created your sprite collection properly as you're not answering my questions.
Title: Re: Tileset not working
Post by: Bridgeman on August 13, 2014, 04:59:35 pm
I tried switching to my new SpriteCollection, but I get the error message "No sprites in <SpriteCollection>". But when I open up my SpriteCollection with the editor, it clearly has sprites.
Title: Re: Tileset not working
Post by: Bridgeman on August 13, 2014, 05:13:34 pm
Here it is [removed link]
Title: Re: Tileset not working
Post by: unikronsoftware on August 13, 2014, 08:43:15 pm
Can you attach it to the forum here, I can't download from that site.
Title: Re: Tileset not working
Post by: Bridgeman on August 13, 2014, 09:45:29 pm
But the max attachment size is 8000KB, and the 2D Toolkit package on its own is already like 18MB
Title: Re: Tileset not working
Post by: unikronsoftware on August 14, 2014, 12:01:51 pm
Hmm... I think you may be including the Library folder... Make sure meta files are on and zip up everything but Library. It should be pretty small.
Title: Re: Tileset not working
Post by: Bridgeman on August 14, 2014, 03:09:38 pm
I tried the same thing in a new project with just the 2D Toolkit package, and it seems to be working now. I'm thinking the project I was working in just had too much clutter.