Hello friends,
I am learning how to make a top down adventure and am stuck on the pause menu. I have the game pausing with instances_deactivate_all and everything disappears which is fine. And the object controlling the pausing and menu creation isn't getting deactivated.
I've been trying to figure out how to use draw commands or create instances in the center of the current view as some rooms are large and the camera moves about. I was hoping to be able to return the numeral value of the viewport's position and store it as a variable then either create instance or draw rectangle at that position.
I tried using ""get view variable" in dnd and targeted them into variables but cant figure out how to use those variables for instance creating or drawing.
I also tried entering the built in variables "view_wport [0]" and "view_hport [0]" in the X and Y sections in "create instance and the object gets created at the viewport's bottom right corner but only at the viewports default location in the room editor. it doesn't get the updated coordinates after following obj_player.
Send Help.
I am learning how to make a top down adventure and am stuck on the pause menu. I have the game pausing with instances_deactivate_all and everything disappears which is fine. And the object controlling the pausing and menu creation isn't getting deactivated.
I've been trying to figure out how to use draw commands or create instances in the center of the current view as some rooms are large and the camera moves about. I was hoping to be able to return the numeral value of the viewport's position and store it as a variable then either create instance or draw rectangle at that position.
I tried using ""get view variable" in dnd and targeted them into variables but cant figure out how to use those variables for instance creating or drawing.
I also tried entering the built in variables "view_wport [0]" and "view_hport [0]" in the X and Y sections in "create instance and the object gets created at the viewport's bottom right corner but only at the viewports default location in the room editor. it doesn't get the updated coordinates after following obj_player.
Send Help.
Last edited: