Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

stop camera if it hits edge of room gml

x = clamp(x, camera_width/2, room_width-(camera_width/2);
y = clamp(y, camera_height/2, room_height-(camera_height/2);
var vn = matrix_build_lookat(x, y, -10, x, y, 0, 0, 1, 0);
 
PREVIOUS NEXT
Tagged: #stop #camera #hits #edge #room #gml
ADD COMMENT
Topic
Name
7+5 =