Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Gotcha! In

function cutscene_camera_follow_object(_ob,_spd) {
// Move the camera object to the object
with(cutscene_camera) {
// Reset it so it won't follow another object at the same time
following = noone;
if (distance_to_object(_ob)>=1) {
//move_towards_point(_ob.x,_ob.y,_spd);
x = _ob.x;
y = _ob.y;
}else{
following = _ob;
cutscene_next();
}
}
}

I changed the move_towards_point() in something more immediate, this make everything work at 100%

(+1)

Nice!

I should probably add a new script that immediately moves the camera to a certain position.

Sounds good! Is there any chance to center to the camera the object we're moving for? In my sidescroller view it is not centered.

(+1)

Try adding this to cutscene_camera->create event, at the end:

camera_set_view_border(_cam,camera_get_view_width(_cam)/2,camera_get_view_height(_cam)/2);

Thanks for noticing this, I will fix this too with the next update.

Yeah no problem! You have a very good library thank you for your work!


I’m wondering if is possible a little camera movement when we reach the point, in this case the objDoor, I mean maybe something like little more off centered with a little smooth movement that center the camera to the object.

(1 edit) (+1)

To do that you would probably have to edit the cutscene_camera_follow_object script.

I can’t test it right now, but maybe this can help: https://forum.gamemaker.io/index.php?threads/how-to-make-an-object-smoothly-change-position.108897/

Or maybe another option could be to use cutscene_camera_moveto_position to move close to the door and then use cutscene_camera_follow_object with a different speed?