Slick Forums

Discuss the Slick 2D Library
It is currently Sat May 26, 2018 12:07 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Wed Oct 18, 2017 11:05 pm 
Offline

Joined: Wed Oct 18, 2017 10:51 pm
Posts: 1
I used TileD to create a map and asked Slick to render it. However the map didn't render correctly. Slick rendered all tiles as the first tile in the tile set.

But in debug mode, I checked the ID for different tiles. It gave different IDs which means they should be different tiles but they look the same.

I created the map using TileD as below:
Attachment:
Screen Shot 2017-10-18 at 4.04.03 PM.png
Screen Shot 2017-10-18 at 4.04.03 PM.png [ 131 KiB | Viewed 446 times ]


But it was rendered like this. Grass is the first tile in the tileset. Then everything becomes grass.
Attachment:
Screen Shot 2017-10-18 at 3.55.53 PM.png
Screen Shot 2017-10-18 at 3.55.53 PM.png [ 249.35 KiB | Viewed 446 times ]


I just showed the up left corner.

Could someone help?


Top
 Profile  
 
PostPosted: Thu Oct 19, 2017 9:30 pm 
Offline
Regular

Joined: Mon Dec 08, 2008 2:17 pm
Posts: 160
Hello :)

Can you show us the code you used to render that map?

Also did you create different layers? or just one?

Also checkout the slick Tiled test in the test dir

It shows how to load and display a tilemap, can you try to run that?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group