so_many_mars/objects/oCamera/Step_0.gml

15 lines
316 B
Plaintext
Raw Permalink Normal View History

2022-02-21 23:45:19 +00:00
/// @description Insert description here
// You can write your code in this editor
x += (xTo - x) / 25;
y += (yTo -y) / 25;
if (follow != noone){
xTo = follow.x;
yTo = follow.y;
}
view_matrix = matrix_build_lookat(x, y, -10, x, y, 0, 0, 1, 0);
camera_set_view_mat(camera, view_matrix);
view_camera[0] = camera;