Cocos2D-X Tutorial for iOS and Android: Space Game

In this Cocos2D-X tutorial, you will learn how to build a space game similar to the one was built in the How to Make a Space Shooter iPhone Game. There will be one major difference - this will be written in beautiful cross-platform C++, using Cocos2D-X!

This is a companion discussion topic for the original entry at

I am trying to implement this parallax effect but i am getting crash in

void CCParallaxNodeExtras::incrementOffset(Vec2 offset,Node* node){
for( unsigned int i = 0; i < _parallaxArray->num; i++) {
CCPointObject *point = (CCPointObject *)_parallaxArray->arr[i];
Node * curNode = point->getChild();
if( curNode==node ) {
point->setOffset(point->getOffset()+ offset);


I am getting crash in
Node * curNode = point->getChild();


Please help me…

This tutorial is more than six months old so questions are no longer supported at the moment for it. Thank you!