• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!
  • Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Question - Code Problem about the view_current in Draw and Draw_GUI

I set this code in both Draw_Event and Draw_Gui_Event.

var _view_current = view_current;
show_debug_message(_view_current);

And In the Room Setting, Enable Viewports and Viewport 0 's visible is on.


However, the show message in Draw_Event is 0 (what i think it should be), and the show message in Draw_Gui_Event is 7(what i don't think it should be).

Is it a bug ? Or i do something mistake about the view_current (just like the view_current is always 7 in Draw_Gui_Event)?
 

Nocturne

Friendly Tyrant
Forum Staff
Admin
The GUI layer doesn't have a camera assigned to it. It's completely separate and is not affected by the camera view at all. So checking the view camera for the GUI layer is meaningless...
 
Top