so I was having issues with get_mouse_coords() and just wanted to share my solution for this. even though I had my view, viewport, camera, and crt settings all set to a window width of 540, for some reason, window_get_width() would return a value of 514. so I replaced the code in get_mouse_coords() to use the actual window dimensions. this isn't pixel perfect, but it is very close & functional:
var u = display_mouse_get_x() / window_get_width();
var v = display_mouse_get_y() / window_get_height();
GentooGames
24
Posts
2
Topics
394
Followers
140
Following
A member registered Sep 24, 2016 · View creator page →
Creator of
Recent community posts
GMEdit community · Replied to YellowAfterlife in GMS (2.3.7.606) Omitting Optional Function Arguments
From the patch notes of the most recent GMS update (2.3.7.606):
- Function calls can now be made with missing arguments, these are then passed as undefined and either optional arguments or the called function can handle that
- I.e., you can now write MyFunctionCall(1,2,,,5) and get the same result as if you had written MyFunctionCall(1, 2, undefined, undefined, 5)
This feature is causing a compile time error to be thrown:
// Error in globalScript at @[<script>:<line_number>]:
// unexpected symbol "," in expression
Im not sure how leaving the default splash screen and not exporting as zip is a "trope"? Either way, glad you think the game is fun to play and looks good. Since graphics and gameplay are two of the most important aspects, I'd rather spend more time focusing on those than creating a custom splash screen. Thanks for the feedback