Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

help me this code error #1

Open
kangminswo opened this issue Dec 12, 2014 · 2 comments
Open

help me this code error #1

kangminswo opened this issue Dec 12, 2014 · 2 comments

Comments

@kangminswo
Copy link

992

i saw this tutorial. but i had got problem.
https://github.com/superman-t/PlaneGame1

BulletSprite.cpp.

bool BulletSprite::init() {
if (!Sprite::init()) {
return false;
}
this->schedule(schedule_selector(BulletSprite::ShootBullet));
return true;
}

classes/BulletSprite.cpp:8:15: Call to non-static member function without an object argument
classes/BulletSprite.cpp:8:15: 'init' is a protected member of 'cocos2d::Sprite’

two of bugs.

i have no idea

i can not do how to fix it.
Please help me
i can not sleep for 3 days.
Please help me

@superman-t
Copy link
Owner

This is my error.You can find there are BulletSprite.cpp and
BulletSprite2.cpp.Delete the BulletSprite.cpp,and run this project again.I
think it will no error.If you stuil have questions.Please tell me.I am
happy to help you .

2014-12-12 9:22 GMT+08:00 kangminswo [email protected]:

[image: 992]
https://cloud.githubusercontent.com/assets/5210981/5405301/188c81d0-81e7-11e4-872f-bffdc7d80c94.png

i saw this tutorial. but i had got problem.
https://github.com/superman-t/PlaneGame1

BulletSprite.cpp.

bool BulletSprite::init() {
if (!Sprite::init()) {
return false;
}
this->schedule(schedule_selector(BulletSprite::ShootBullet));
return true;
}

classes/BulletSprite.cpp:8:15: Call to non-static member function without
an object argument
classes/BulletSprite.cpp:8:15: 'init' is a protected member of
'cocos2d::Sprite’

two of bugs.

i have no idea

i can not do how to fix it.
Please help me
i can not sleep for 3 days.
Please help me


Reply to this email directly or view it on GitHub
#1.

@kangminswo
Copy link
Author

i want to fix it because i am learning cocos2d-x and your project sorce code.
but...Please Please Please fix it .. i am a beginner. i wish i want to make the PlaneGame
.
your PlaneGame sorce code is best and you are best
thank you thank you so much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants