![]() |
setShape Problem
Useing the this.setShape() function, is there a way to move the image within that box?
this.setshape(1, 80, 80); It works for below it, and of the right of it, but is there a way to center the image in the '80' '80'? |
Not the way you want it, but I wish there was an easy way to offset the position of the shape/npc.
You have to use showimg to draw the image within that box, then you can use some simple math to determine the center position ((max_width - width) / 2). I.e. PHP Code:
|
You can use a gani, as the setshape starts at 0,0 in a gani(the topleft of the green box).
|
| All times are GMT +2. The time now is 10:32 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.