hiteshsuthar / rokon

Automatically exported from code.google.com/p/rokon
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Grow and Shrink (Sprite Modifier), effect is not centered #29

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
How-to fix:

In:
public void onUpdate(Sprite sprite) {...}

Replace:
offsetX = (width / 4f) - (scale * (width / 4f));
offsetY = (height / 4f)- (scale * (height / 4f));

With:
offsetX = (width / 2f) - (scale * (width / 2f));
offsetY = (height / 2f)- (scale * (height / 2f));

Original issue reported on code.google.com by christop...@gmail.com on 31 Dec 2009 at 3:23

GoogleCodeExporter commented 8 years ago
Fixed in trunk, thankyou

Original comment by rtaylor205@gmail.com on 31 Dec 2009 at 10:22