Positioning of an image sprite

How do I position an image sprite in the bottom centre of a canvas? I've tried to set x to canvas width/2 but it doesn't work out. Does it have anything to do with the anchor point? Thanks : )


X - Canvas.width/2 - sprite.width/2

Y - Canvas.height - sprite.height

thanks! worked really well

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.