S
Spencer S
Guest
I have the following code in the creation code of my room:
This isn't applying at all. No matter what I seem to code, it doesn't apply to my current camera. What line am I missing, or what am I typing wrong? I want to control the camera and view purely through the creation code of my room.
Code:
camera = camera_create_view(0, 0, 640, 480, 0, obj_player, 5, 5, -1, -1);
var viewmat = matrix_build_lookat(640, 240, -10, 640, 240, 0, 0, 1, 0);
var projmat = matrix_build_projection_ortho(640, 480, 1.0, 32000.0);
camera_set_view_mat(camera, viewmat);
camera_set_proj_mat(camera, projmat);