Cocos2d Tiled Dynamic Object Layer
- by Rodrigo Camargo
I'm trying to develop a cocos2d tiled based game using a sort of 'dynamic' object layer. What I want to do is after the tiled map is loaded, the user can drag something into the map and that will become an event when the 'hero' pass over it. I know how to build an object layer in tiled but it seems that is for fixed positions and what I want is a dynamic action position based on what the user can select. For instance, the user can drag a rock into a tile and when the character hit that rock he may die, or something.
I'm a little lost about how to make it work. Do you have any idea of what should I use or what should I look for?
Thanks in advance!