Hi, I have a game, with 2 layer.
the first layer there is 2 icons or more, when i touch the first icon it will load the second layer(game layer) with tilemap one.
when i touch the second icon it will load the second layer with tilemap two.
i have created
-(void) tileMapOne
{
//tile map first level code
}
-(void) tileMapTwo
{
//tile map second level code
}
My questions is, is there a way to write a code where when i load the new scene it can load the -(void) tileMapOne method when click icon 1. and when i click icon 2 it loads
the new scene with -(void) tileMapTwo.
if you guys cant give me the code maybe give me advice how to do it?
i hope some one can advice me coz im a little new to cocos2d
i followed ray wrend. tutorial on tiled maps and i created a new "meta/special tile" in tiled and made collsion (just like making him stop walking into things or collecting items (if you read the tutorial (its 3 parts)). Then i created the new "meta tile" and made the collision when he walks into that tile he switches levels, if you need me to walk you through it just say, im happy to help
by the way if you want those tutorials here they are (part1, part2, part3)