display_mouse_set();
#1
Posted 30 May 2012 - 10:45 PM
I have a simple question. I'm invested in making fps games on game maker and I'm excited to hear about the speed enhancements on the new GMS C++ runner.
However, now that I can't use "display_mouse_set(display_get_width()/2,display_get_height()/2)" it's making it really hard to create an FPS game on GMS.
I know that on the iOS and android this isn't a problem because you can easily drag your mouse back and forth causing a projection to change.
But, this isn't very practical on the PC and I've tried a few ways for changing the pitch, yaw, and roll of a projection without centering the mouse but it's becoming impossible due to the fact that the mouse will only output the coordinates within the window. The mouse is also blocked by the window and won't continue to travel or output the coordinates.
How do I reset the mouse position back into the center of the window, or are there any other ways of viewing the world with the mouse without dragging?
display_mouse_set(displayW,displayH);
Thanks!
#2
Posted 30 May 2012 - 11:15 PM
I'm sure they'll fix it. Technically, there is no reason to have those removed, but rather disabled instead for IOS and Android...
Why don't you submit a bug report!?
#3
Posted 30 May 2012 - 11:56 PM
These functions are now considered obsolete due to the changes in the way that GameMaker:Studio draws things to the screen, as well as the fact that some of them are legacy functions from quite a while back which are no longer valid for modern computers and devices, or that they don't work on any device except a Windows machine, and even then they are usually not necessary.
It's fortunate that 3D is still supported but I feel like they will soon make that obsolete as well. I love GM's 3D and it's the only thing I feel comfortable programming.
I wish there was another way to re-center the mouse or something.
#4
Posted 31 May 2012 - 01:10 AM
I'll report it then...
#5
Posted 31 May 2012 - 01:31 AM
Without those, there is absolutely no way to control a character in a 3d game without going back to pre mouse era. It is a bug of omission.
I'll report it then...
Yup, I guys I'll have use the arrow keys
I submitted it as a "Wish" on the GMS bug tracker.
#6
Posted 31 May 2012 - 01:52 AM
BTW, can you put your images next to each other in your sig instead of under each other? Thanks!
#7
Posted 31 May 2012 - 02:23 AM
LOL, you are not a stern as I was. Mine's logged as major bug LOL
BTW, can you put your images next to each other in your sig instead of under each other? Thanks!
Hahah, I'm too nice to YoYoGames! My help desk tickets are so sugar coated they make teddy bears look awful.
And I fixed the sig! Thanks for all your help!
#8
Posted 01 June 2012 - 04:10 PM
#9
Posted 09 July 2012 - 03:05 PM
that feels old and bad... a shame for game maker studio. Hope they will add those functions later,
else there could be some extension / dll that can add those missing functions. What I want most is: display_mouse_set()
#10
Posted 09 July 2012 - 05:29 PM
#11
Posted 10 July 2012 - 12:07 PM
#12
Posted 11 July 2012 - 02:41 AM
The YoYo Games Staff replace the command display_mouse_set with window_mouse_set().display_mouse_set IS in GM:Studio. They did originally plan to remove it, but after realising that it was important to a lot of people, they added it back in. The only change is that it now only works while the game is in focus, so it doesn't take over your mouse like it did in previous versions.
#13
Posted 11 July 2012 - 02:42 AM
Edited by MrHiggintop, 11 July 2012 - 02:43 AM.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











