RenoAssassin
Member
hello, I have an interesting idea when it comes to the camera following the player, but I have no idea how to implement it. so, basically the player will be on one side of the screen such as this. and note the camera follows the player in this positions already.
and what I would like to do is when I move left the camera slowly transitions to this side instead of just appearing.
hopefully I explained that well enough. here is the code i am currently using just to flip the perspective.
// camera perspective switch
var cam_id = view_camera[0];
var cam_width = camera_get_view_width(cam_id)
var cam_height = camera_get_view_height(cam_id)
x = playert.x;
if keyboard_check(ord("D")){
camera_set_view_pos(cam_id,x-cam_width+850,y-cam_height=5000);
}
else
{
if keyboard_check(ord("A"))
camera_set_view_pos(cam_id,x-cam_width+120,y-cam_height=5000)
any help would be appreciated. Thank you.
and what I would like to do is when I move left the camera slowly transitions to this side instead of just appearing.
hopefully I explained that well enough. here is the code i am currently using just to flip the perspective.
// camera perspective switch
var cam_id = view_camera[0];
var cam_width = camera_get_view_width(cam_id)
var cam_height = camera_get_view_height(cam_id)
x = playert.x;
if keyboard_check(ord("D")){
camera_set_view_pos(cam_id,x-cam_width+850,y-cam_height=5000);
}
else
{
if keyboard_check(ord("A"))
camera_set_view_pos(cam_id,x-cam_width+120,y-cam_height=5000)
any help would be appreciated. Thank you.