ID:2035875
Feb 13 2016, 8:42 am
|
|
how can i give a location for a icon that is src located? its a big icon so the icon puts my in like the corner of it i wanna know how i can be put in the middle? all the other icons i can choice where to put them but when i try it for the center it wont cause its src located how can i fix this?
|
Feb 13 2016, 10:06 am
|
|
You can alter the pixel_x and pixel_y variables for it to change the pixel offset. You can also use matrix.Translate().
|
see now i tried to do the pixel x and y on it but it wont move heres the coding for you......
obj/techs/Overlays/Crater_Center |
Open the reference and search "image proc", there is an example on how to use pixel_x and pixel_y for this purpose.
|
In response to Nadrew
|
|
Nadrew wrote:
You can also use matrix.Translate(). All the answers lie right in this one statment |