{"id":530,"date":"2025-03-16T20:14:26","date_gmt":"2025-03-16T20:14:26","guid":{"rendered":"https:\/\/oliver-frick.ch\/wordpress\/?p=530"},"modified":"2025-03-16T20:14:26","modified_gmt":"2025-03-16T20:14:26","slug":"gamemaker-debug","status":"publish","type":"post","link":"https:\/\/oliver-frick.ch\/wordpress\/index.php\/2025\/03\/16\/gamemaker-debug\/","title":{"rendered":"GameMaker Debug"},"content":{"rendered":"\n<p>\/\/\/ @description Debug Script A<br>show_debug_message(&#8222;A &#8220; + string(current_time));<\/p>\n\n\n\n<p>\/\/ If view width is over view height, then we are in landscape\u2026<br>if(camera_get_view_width(view_camera[0]) &gt; camera_get_view_height(view_camera[0]))<br>{<br>\/\/ This object is invisible.<br>visible = false;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ Exit this event as we don't want to execute it's actions in landscape.\nexit;<\/code><\/pre>\n\n\n\n<p>}<\/p>\n\n\n\n<p>\/\/ We are in portrait.<br>else<br>{<br>\/\/ This object is visible.<br>visible = true;<br>}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\/\/\/ @description Debug Script Ashow_debug_message(&#8222;A &#8220; + string(current_time)); \/\/ If view width is over view height, then we are in landscape\u2026if(camera_get_view_width(view_camera[0]) &gt; camera_get_view_height(view_camera[0])){\/\/ This object is invisible.visible = false; } \/\/ We are in portrait.else{\/\/ This object is visible.visible = &hellip; <a href=\"https:\/\/oliver-frick.ch\/wordpress\/index.php\/2025\/03\/16\/gamemaker-debug\/\">Weiterlesen <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-530","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/oliver-frick.ch\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/530","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oliver-frick.ch\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/oliver-frick.ch\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/oliver-frick.ch\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oliver-frick.ch\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=530"}],"version-history":[{"count":2,"href":"https:\/\/oliver-frick.ch\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/530\/revisions"}],"predecessor-version":[{"id":533,"href":"https:\/\/oliver-frick.ch\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/530\/revisions\/533"}],"wp:attachment":[{"href":"https:\/\/oliver-frick.ch\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=530"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oliver-frick.ch\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=530"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oliver-frick.ch\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=530"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}