PositionToBlitX = PositionToBlitX - (ImageSource:width() / 2 )
PositionToBlitY = PositionToBlitY - (ImageSource:height() / 2 )
screen:blit(PositionToBlitX, PositionToBlitY, ImageSource)
I've looked around for a bit now but cant find out how to print a picture from the centre of the picture rather than printing it from the top left hand corner of the picture.
If someone could tell me how or where to find out it would be a big help.
Cheers.
PositionToBlitX = PositionToBlitX - (ImageSource:width() / 2 )
PositionToBlitY = PositionToBlitY - (ImageSource:height() / 2 )
screen:blit(PositionToBlitX, PositionToBlitY, ImageSource)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks