Hi and thanks for your responses.
getName, and getResourceName doesn’t work for me (getResourceName is just a “”). I’m using a spritesheet + plist.
jasmine = Sprite::createWithSpriteFrameName("jasmine0");
auto n = jasmine->getResourceName();
// n is ""
and another thing, in another class which extends a Sprite class and runs a repeating animation like so:
// also uses sprite frames from a spritesheet
and then in the update do…
auto n = this->getResourceName();
is says n has the name of the png file I put inside
sprite->initWithSpriteFrameName("butterfly04.png") even though it’s constantly animated with 4 different images. The output I was expecting was:
... // repeat