setting position in CCSprite subclass

Hi

I have inherited my class from CCSprite and i am trying to set the position of my object in my class
using this>setPosition(x,y);

but its not working properly

here is what iam doing

class A : public CCSprite
{
//sets the current object position
void setMyPosition(float Posx , float Posy)
{

this~~>setPosition);
}
}

////////////and iam creating object from other class like this
mySprite = A::create;
mySprite~~>setMyPosition(250.0 , 250.0);

Thanks

What’s the failure? Compilation? Just doesn’t work?

thank you so much

i got the solution…:slight_smile: