First time game developer here…
This is my app setup:
AppDelegate call GameScene(Class)
GameScene creates a Scene and adds to itself an instance if GameLayer(Class)
GameLayer is the main class where the whole game takes place.
But this game is an RTS so i have other layer that i need to add to GameLayer on demand and remove on demand. These layers, call for the adding a specific sprite by call a method from the GameLayer..
But whenever i press the button to add the temporary layer i get a crash… am i doing something wrong?? or is what i am trying even possible??
any help with be greatly appreciated..