You have to set the x and y coordinates each time you scale it.
Code:
photo1_pan.pos_x=screen_size.x/2-bmad_width(photo1_pan.bmap)/2;
photo1_pan.pos_y=screen_size.y/2-bmad_height(photo1_pan.bmap)/2;


EDIT: Damn TechMuc was faster... 1 minute 58 seconds..

Last edited by Razoron; 02/25/10 12:48.