S
saito kami
Guest
I use the following code:
From the docs i read that the last 2 arguments of camera_create_view are used to set the position where to drag the camera from, my problem is if the x_border is higher than width/2 (430 in this case), no matter how high the value are, the camera still drags at the centre.
Did i understand it wrong? or is there a problem in this code.
Code:
view_enabled = true;
view_visible[0] = true;
var width = 480, height = 270, scale = 2;
var cam = camera_create_view(0,0,width,height, 0, object0, -1, -1, 430, height/2);
view_set_camera(0, cam);
window_set_size(width*scale, height*scale);
surface_resize(application_surface, width*scale, height*scale);
Did i understand it wrong? or is there a problem in this code.