I'm creating a simple game for the iPhone using Cocos2d. I'm having a hard time understanding how add real objects to a tiled map.
I know that you can add an object-layer to the tiled map and set the position of it, but I'm not sure how to define WHAT object it should be.
For example, if I'm creating a simple Super Mario Bros. I want to add different blocks to the map, one should hold a star, one should hold a coin, and so on.
How should I define what object it is?
So my question, how do I correctly create class-objects in a tiled map?