I'm new to GMS2 such so that I'll come across simple issues unfortunately.
My camera position is perpetually at (-1, -1) despite being set to the correct position (I know it's been set correctly). I'm obviously doing something very wrong somewhere.
Create event of persistent screen control object
Room start event of same persistent screen control object
End step of a camera control object
ViewX and ViewY are 100% correct.
I'm sure it's possibly obvious to those more versed in GMS2 logic. Am I missing something or doing something incorrectly? Is there any known pitfall which can unintentionally move the camera? This is a project I'm migrating to the newer GM version.
I should mention I've checked for other code moving the camera and no, the line I've given is the only time the function is called.
Perhaps I'm doing it all wrong.
My camera position is perpetually at (-1, -1) despite being set to the correct position (I know it's been set correctly). I'm obviously doing something very wrong somewhere.
Create event of persistent screen control object
Code:
global.Camera = camera_create_view(0, 0, Width, Height, 0, -4, 0, 0 ,0, 0);
view_set_camera(0, global.Camera);
Code:
view_enabled = 1;
view_visible[0] = 1;
view_set_camera(0, global.Camera);
Code:
camera_set_view_pos(global.Camera, ViewX, ViewY);
I'm sure it's possibly obvious to those more versed in GMS2 logic. Am I missing something or doing something incorrectly? Is there any known pitfall which can unintentionally move the camera? This is a project I'm migrating to the newer GM version.
I should mention I've checked for other code moving the camera and no, the line I've given is the only time the function is called.
Perhaps I'm doing it all wrong.