T
TInteractive
Guest
~So I am developing a mobile game through GM:Studio, but I am having some issues. I am going to try and make is a clear as possible: There is a start button on my game and I placed a virtual key to cover it. When I try it on one phone it is positioned correctly, but when I try it on a different phone the virtual key changes position significantly. I figured this was because phones have different resolutions but I still don't know how to fix it. Someone told me to use window_get_height() but that didn't really work. I would also appreciate further help since I am trying to publish this game.~
UPDATE: I created an object, checked "persistent" and in the create event wrote display_set_gui_size([widht], [height]). Then I created the virtual key in a Draw GUI event in the object and it seemed to worked on both devices I am testing. The problem is I want to delete the virtual key at a point but because it is in the draw event it doesn't seem possible. Is there a way to fix this? Maybe a loophole that allows me to delete the virtual key while in the draw GUI event? Or another way to fix that doesn't include writing the key in the draw GUI? Please I would really appreciate any help. Thanks.
UPDATE: I created an object, checked "persistent" and in the create event wrote display_set_gui_size([widht], [height]). Then I created the virtual key in a Draw GUI event in the object and it seemed to worked on both devices I am testing. The problem is I want to delete the virtual key at a point but because it is in the draw event it doesn't seem possible. Is there a way to fix this? Maybe a loophole that allows me to delete the virtual key while in the draw GUI event? Or another way to fix that doesn't include writing the key in the draw GUI? Please I would really appreciate any help. Thanks.
Last edited by a moderator: