Jump to content

  • Log In with Google      Sign In   
  • Create Account

#ActualSimonForsman

Posted 05 April 2013 - 08:45 AM

I think this should work.

virtual void setCenteredPosition(float x, float y) {
    spriteData.x = x - spriteData.width/2*getScale();
    spriteData.y = y - sprideData.height/2*getScale();
}

#1SimonForsman

Posted 05 April 2013 - 08:45 AM

virtual void setCenteredPosition(float x, float y) {
    spriteData.x = x - spriteData.width/2*getScale();
    spriteData.y = y - sprideData.height/2*getScale();
}

PARTNERS