S
SirDude
Guest
Hi, so I'm using the new Camera Projection Matrix added in GMS 2, but I don't really understand how to get the data once it's set up. For example, how do I get the x and y position of the camera like
camera_get_view_x(view_camera[0]) used to do? I tried to calculate it myself with:
var cw = camera_get_view_width(view_camera[0]);
var ch = camera_get_view_height(view_camera[0]);
var cleft = x - (cw / 2);
var ctop = y - (ch / 2);
,but there has to be an easier way, right? (also I'm actually not even sure if that is correct...)
Thank you for your help.
camera_get_view_x(view_camera[0]) used to do? I tried to calculate it myself with:
var cw = camera_get_view_width(view_camera[0]);
var ch = camera_get_view_height(view_camera[0]);
var cleft = x - (cw / 2);
var ctop = y - (ch / 2);
,but there has to be an easier way, right? (also I'm actually not even sure if that is correct...)
Thank you for your help.