calling parent method

hi, i’m really new at cocos programming
i’m trying to call parent method from object

in my hello world scene, i add child arrow object,
and got a removeSprite() function to remove that sprite

the question is how i call the removeSprite() function from my arrow class?

thx

got it, there is a method getParent();

1 Like