Ax209
Member
Hey everyone, not sure if this is something I can work around or what, or even if it's specific to GMS2 but perhaps someone's encountered this before.
I made a game with virtual keys. Because there are so many, I created them when the applicable windows opened, and destroyed them when they closed, so I didn't continue to create an infinite amount of virtual keys by constantly clicking on the window. The ones needed were created and then destroyed with the window.
It worked perfectly but now once the windows have been open too many times, they stop responding. After troubleshooting and seeing that the ACTUAL KEYS themselves work, just not when i click on them with the mouse, I had a look online.
It seems that you can only have 128 virtual keys before the game creates an error. Now, I don't have that many, because I destroy them when the window closes. However, it seems to stop registering them by the same point. I do have a "virtual_key_show" code and when the window opens, you can see the box where the key "is", but I can't click on it with the mouse.
Is this a GMS2 error? Does anyone know a way around this?
Many thanks
I made a game with virtual keys. Because there are so many, I created them when the applicable windows opened, and destroyed them when they closed, so I didn't continue to create an infinite amount of virtual keys by constantly clicking on the window. The ones needed were created and then destroyed with the window.
It worked perfectly but now once the windows have been open too many times, they stop responding. After troubleshooting and seeing that the ACTUAL KEYS themselves work, just not when i click on them with the mouse, I had a look online.
It seems that you can only have 128 virtual keys before the game creates an error. Now, I don't have that many, because I destroy them when the window closes. However, it seems to stop registering them by the same point. I do have a "virtual_key_show" code and when the window opens, you can see the box where the key "is", but I can't click on it with the mouse.
Is this a GMS2 error? Does anyone know a way around this?
Many thanks