I'm trying to make a basic 2D game using Slick2D with the Tiled Map Editor. I have figured out how to do basic collision detection using TileProperties but I'm not sure how Objects work with the map editor. I'm trying to do two things (if they're possible): more precise polygon collision detection and game items on the map that the player can pick up.
The problem is that I don't know how to check for objects. I've looked in the Slick javadoc and I saw some methods that take int ObjectId and ObjectGroup as parameters but I'm not sure how they can be found. Could someone please explain? Even if I know how to check Objects, how would I scan the whole map for, say, "item" objects and do things with it, like render an image at that position?
Any help will be greatly appreciated.
Edit: I think I now know how to use objects but I still don't know how to get the objectID and objectGroupID. Could someone please explain ho to get the IDs either from Tiled or with Slick?