so_many_mars/objects/oCamera/Step_0.gml
Tyrel Souza 8854b848bc init
2022-02-21 18:45:19 -05:00

15 lines
316 B
Plaintext

/// @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;