Eli Mobile Controls - Responsive on screen buttons for mobile games!



Author: Hakuen Studio​


Introduction

If you ever tried to make mobile games, you know that it can be challenging to put buttons on the screen, since there are a lot of mobile devices with different screen sizes and resolutions. So deciding the size and position of these buttons can be a pain.

This plugin implements buttons on-screen in a responsive way, meaning their sizes and positions will be automatically adjusted according to the client's screen size. It also can be rendered outside of the game canvas(on the black bars.)

Features
  • Add responsive buttons on the screen for mobile games.
  • Hide/show buttons on message.
  • Special Button that can show/hide all other buttons.
  • Two types of movement buttons: Directional pad and Joystick.
  • Disable touch screen movement
  • Disable double touch menu
  • Work with diagonals
  • Assign buttons to any keyboard key or script call.
  • Cold and hot images for every button.
  • Set vibration for Regular buttons.
How to use / Update Log
Terms of Use
Omg, this is exactly what I needed. Can you add more buttons that run comment events with this plugin?
@Lee Sang Hi!
Yes, you can add as many buttons as you want in the plugin parameters.
And you can execute common events with the Script In and Script Out parameters.
($gameTemp.reserveCommonEvent(eventId))
Anyway to bring this to MV? Otherwise great plugin but wish I could use it. ;(
The stable version is out! Check the first post and Itch io page! ^^​

Version 1.0.0 - 09/08/2021
- Plugin release!
Congrats on the release!

Topic moved to MZ Plugin Releases.
Hi Eliaquim, when I build and upload the demo project, I get this error when I go to the website on an iphone:

TypeError: undefined is not an object(evaluating orientation type)

I didn't make any changes to the project demo, just built it and uploaded it. It works on an android tablet -- is this for android only?
Hi Eliaquim, when I build and upload the demo project, I get this error when I go to the website on an iphone:

TypeError: undefined is not an object(evaluating orientation type)

I didn't make any changes to the project demo, just built it and uploaded it. It works on an android tablet -- is this for android only?
Hi there!
Well, I only test it on android. I don't have an iPhone to test. But it is HTML most, so it should work on both.
It will help if you, somehow, manage to track the error log and send me a screenshot of it. So I can see where the error happens in the code. But I know nothing when it comes to iPhone, sorry =/
Version 1.1.0 - 11/19/2021
- Add an option to enable the movement by clicking on the screen when hiding the buttons with the Control button(Control Button Parameters).
Version 5.0.0 is not compatible with my plugins that are below the 5.0.0 versions.

Version 5.0.0 - 02/05/2022

  • [MV] Ported to MV!
  • Updated terms of use.
Version 5.0.0 is not compatible with my plugins that are below the 5.0.0 versions.

Version 5.0.0 - 02/05/2022

  • [MV] Ported to MV!
  • Updated terms of use.
I've been waiting for MV support! I did a quick test with a JoyStick setup with QMovement and I get this:

Eli_MobileControls.js:1428 Uncaught TypeError: Cannot read property 'createParameters' of undefined
at Object.initParameters (Eli_MobileControls.js:1428)
at Object.initialize (Eli_MobileControls.js:1404)

I don't know if Qmovement makes a difference but it's not working sadly. Could you possibly add support for Q- plugins?

Thanks for your work!
I've been waiting for MV support! I did a quick test with a JoyStick setup with QMovement and I get this:

Eli_MobileControls.js:1428 Uncaught TypeError: Cannot read property 'createParameters' of undefined
at Object.initParameters (Eli_MobileControls.js:1428)
at Object.initialize (Eli_MobileControls.js:1404)

I don't know if Qmovement makes a difference but it's not working sadly. Could you possibly add support for Q- plugins?

Thanks for your work!
Hi there!
Can you try to show me the screenshot of the error? So I can see the full log of the console tab.
Also, a screenshot of the plugins you are using too, if possible ^^

[EDIT] Also, did you update the last Eli Book version? Because it needs to be the 5.0.0 version. And Eli Book must be somewhere above the Mobile Controls
Version 5.0.1 - 02/23/2022
  • Fixed an issue that depending on where a button is located, if it collides with the error printer element, it does not receive the click. Setting the error printer style pointer to none solved the problem.
Version 5.0.2 - 03/01/2022
  • Fixed an issue that hidden buttons are showing up when the scene changes.
  • Fixed an issue that even when hiding buttons, the “touch screen”, and “Double-tap to open menu” rules are being ignored.
Version 5.0.3 - 03/03/2022
  • Fixed a bug that when Enabled screen movement when hiding buttons, the moment you click on the Control Button, the screen movement is already enabled, causing the buttons to hide/show and the player to move by this same click.
Hi there!
Can you try to show me the screenshot of the error? So I can see the full log of the console tab.
Also, a screenshot of the plugins you are using too, if possible ^^

[EDIT] Also, did you update the last Eli Book version? Because it needs to be the 5.0.0 version. And Eli Book must be somewhere above the Mobile Controls
Hello again! I tried using your latest plugin versions of both Eli_Book and MobileControls. Plugin seems to be very smooth and like the functionality, BUT..
I have one major issue. Please see attached video and console log

Thanks again!



1646453702146.png
Hello again! I tried using your latest plugin versions of both Eli_Book and MobileControls. Plugin seems to be very smooth and like the functionality, BUT..
I have one major issue. Please see attached video and console log

Thanks again!



View attachment 218381

Hi there!

Almost all the consle error you shown have nothing to do with my plugin, excpet for that part:

1646454399023.png


My plugins is looking for the HOT images of your buttons(the image that will show when you press the button).
All the button images must have an unpressed image(cold) and a pressed image(hot).
So make sure you have both image versions for each button.

Like, I have these images for the joystick:
1646454253928.png


So I need to have four images, like below:

1646454307686.png


1646454209850.png


They are case sensitive.
The hot image must have the exactly same name as the cold image, plus "_hot".
Hi there!

Almost all the consle error you shown have nothing to do with my plugin, excpet for that part:

View attachment 218387

My plugins is looking for the HOT images of your buttons(the image that will show when you press the button).
All the button images must have an unpressed image(cold) and a pressed image(hot).
So make sure you have both image versions for each button.

Like, I have these images for the joystick:
View attachment 218385

So I need to have four images, like below:

View attachment 218386

View attachment 218383

They are case sensitive.
The hot image must have the exactly same name as the cold image, plus "_hot".
Ah, I'm stupid. Thanks, it works great!
I actually have a genuine bug this time. I have my joystick setup to only be allowed on Scene_Map. Whenever opening game menu on the map, joystick doesn't go away and is still functional. I tried setting show/hide during messages to true/false. Didn't change anything. Lemme know if there a fix and thanks!
I actually have a genuine bug this time. I have my joystick setup to only be allowed on Scene_Map. Whenever opening game menu on the map, joystick doesn't go away and is still functional. I tried setting show/hide during messages to true/false. Didn't change anything. Lemme know if there a fix and thanks!
Hi there!

The message parameter has nothing to do with that. I tried replicating this error, but I didn't manage to trigger it.
Everything here works just fine(Version 5.0.3):
1646513722981.png

  • Did you try it on a clean project(to see if it is a compatibility issue between plugins)?
  • Can you send to me a screenshot of your plugin parameter?
  • If the error persists, can you upload a sample project replicating the error, so I can take a look?

Original thread: https://forums.rpgmakerweb.com/threads/eli-mobile-controls-responsive-on-screen-buttons-for-mobile-games.133940/