user1791574
user1791574

Reputation: 1749

Cannot initialize a parameter of type CCScene COCOS2D

I just use code to push scene from one scene to another.

Here is my code.

SettingScene *setting=[SettingScene node];
[[CCDirector sharedDirector]pushScene:setting];

I have used same above other method that works fine but in this line it shows error...

/Users/jellyfishtechnologies/Desktop/Vivek/My Game Project/Flyer/Flyer/HomePageScene.mm:91:43: Cannot initialize a parameter of type 'CCScene *' with an lvalue of type 'SettingScene *'

I dont understand what the exact problem!!!

Upvotes: 1

Views: 769

Answers (1)

Arpit Raniwala
Arpit Raniwala

Reputation: 235

Probably your SETTINGS class is not a subclass of CCScene or it isn't returning a CCScene Object. Please verify this.

Upvotes: 3

Related Questions