So the best way to go here is to use big images sizes. The same is for positions X and Y of these buttons.īut the button will never have a size higher than its image file. So if you put a size of 20, it will be equal to 20% of the screen size of any device that runs your game. You will decide the size and positions of the buttons based on % values according to the screen size of the device. You just need to add "_hot" at the end of the filename. The hot image must be another image file with the same name as the cold image. In the plugin parameters, you can choose the cold image for any button. Joystick Button → A joystick to move the player.Įvery button needs two images: The cold image(when a button is not pressed) and a hot image(when a button is pressed).Dpad Button → A directional pad to move the player.Control Button → Used to hide/show all other buttons on the screen.
So deciding the size and position for these buttons can be a pain. If you ever tried to make mobile games, you know that can be challenging to put buttons on the screen, since there is a lot of mobile devices with different screen sizes and resolutions.
Terms of use / Termos de uso ***Please, download the sample project and give me feedback to improve the plugin!!!*** Introduction