I've been trying to find a solution for a few days :(
What's the best way to handle multiple levels for a super mario like game? I have:
GameScene: where i have all the logic and will call the hero and different level layers.
LevelLayer: here goes the background images. Each level has it's own layer. Lvllayer1.h, LvlLayer2.h...
SelectLevel:the menu where i can choose which level to play.
I have no problem to create the menu and start GameScene with level1. But how to load all the other levels?
Every time i try to pass a int tag on the init, the level just doesn't load.
- (id) initWithLevel:(int)level
Any thought on this?