how'd you make that slow camera effect?
// move the camera to where it needs to be
if instance_exists(obj_Player)
{
target_x = (obj_Player.x + mouse_x) / 2;
target_y = (obj_Player.y + mouse_y) / 2;
if target_x > obj_Player.x+48 {target_x = obj_Player.x+48;}
if target_x < obj_Player.x-48 {target_x = obj_Player.x-48;}
if target_y > obj_Player.y+12 {target_y = obj_Player.y+12;}
if target_y < obj_Player.y-12 {target_y = obj_Player.y-12;}
if active = 1
{
// adjust X
if target_x < x
{
x -= point_distance(target_x,y,x,y)/12;
}
if target_x > x
{
x += point_distance(target_x,y,x,y)/12;
}
// adjust Y
if target_y < y
{
y -= point_distance(x,target_y,x,y)/12;
}
if target_y > y
{
y += point_distance(x,target_y,x,y)/12;
}
}
}
mouse_x and mouse_y are just the second point that the camera wants to go to. you can just make it, for instance, a non-changing point infront of the player or something
the first set of 48s and 12s are how far away the camera will let itself go from the player before stopping
the second set of 12s affect how quickly the camera pans from point A to point B: lower numbers make the camera pan faster
you can also split the second set of 12s into different numbers for x and y, if you want cameras to scroll faster horizontally/vertically. it's really pretty robust