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

@calamis please use English on this forum. Use Google Translate if you have to.
mano queria saber se pode deixar as imagens de exemplo, pois estou atrapalhando isso só para fazer o plugging funcionar corretamente, vlw
- You can't speak Portuguese here. You need to write in English.
They are on the sample project on itch io

(Fala fera! Aqui tu tem queue falar em inglês xD. As images estão no projeto de exemplo, no itch io, nesse link acima).

Version 5.1.0 - 05/08/2023​

  • Added a new plugin parameter that let the user select on what type of platform the plugin will be enabled: Desktop, Mobile, and Web Browser.
Is it possible to disable the buttons on the identified map?
Is it possible to disable the buttons on the identified map?
Hi!

Currently not. You can only disable buttons by different scenes, not by map Id.
But I believe I can add this feature!
Hi!

Currently not. You can only disable buttons by different scenes, not by map Id.
But I believe I can add this feature!
Thank you very much

Version 5.2.0 - 06/08/2023​

  • Added a new plugin parameter that let the user input a custom condition for the button to show on the scene. Requires some javascript knowledge.
  • Fixed a compatibility issue with Eli Book 5.4.7 and Eli Message Manager(MZ only).
Is it possible to disable the buttons on the identified map?
To do that on the new version, put this on the new "Allowed Condition" parameter:
mobile controls test.png


Replace the ID with the map ID you want.
That condition must always end with(without quotes):
"return boolean value"

Where the boolean value must be true or false.

Version 5.2.0 - 06/08/2023​

  • Added a new plugin parameter that let the user input a custom condition for the button to show on the scene. Requires some javascript knowledge.
  • Fixed a compatibility issue with Eli Book 5.4.7 and Eli Message Manager(MZ only).

To do that on the new version, put this on the new "Allowed Condition" parameter:
View attachment 264628

Replace the ID with the map ID you want.
That condition must always end with(without quotes):
"return boolean value"

Where the boolean value must be true or false.
SceneManager_scene is not defined
screen1.png
SceneManager_scene is not defined
View attachment 264922
My bad!
Put SceneManager._scene
Hi. This plugin has become really useful for me. It works and enables my web based game to work on phones. A question or two remains. One is, my ESC button is disabled within the Options Menu, even though I set the parameters (I think) to enable it.
I do have YEP_MainManagerMenu enabled though - maybe this is the problem.
On a side note, cam anyone tell me how to disable the URL window when my game is playing on a mobile phone through a browser?
options-for-eli-mobile-controls.PNG
One is, my ESC button is disabled within the Options Menu, even though I set the parameters (I think) to enable it.
Hi!
Are you saying that your ESC button is not working inside the Scene Options menu?
Can you tell me what you are trying to do and what the ESC button is supposed to do?

Also, can you show me a full screenshot of your ESC button configuration on plugin parameters?
That one you sent is just telling me what scenes the ESC button will appear.

Remove the YEP plugin and see if it will work to test if this is a compatibility issue. I don't believe it is. But we need to test.
1692109840411.png

Thanks for your kind reply. I got busy with other things. I hope this is the screenshot you are after.
The ESC button is supposed to return the player to the main part of the game, the map. It does for everything except the options screen.
For example, in other screens, your button comes up:

1692110009448.png

But when Options is invoked, it disappears. Therefore a player on mobile might be completely stuck.
1692110097152.png

Thanks for any help you can give on this.
View attachment 273441
Thanks for your kind reply. I got busy with other things. I hope this is the screenshot you are after.
The ESC button is supposed to return the player to the main part of the game, the map. It does for everything except the options screen.
For example, in other screens, your button comes up:

View attachment 273442
But when Options is invoked, it disappears. Therefore a player on mobile might be completely stuck.
View attachment 273443
Thanks for any help you can give on this.
Got it!
The problem is you are using a custom options scene, not the default one.
The default one is called: Scene_Options

Your custom one is called: Scene_mushOptions_P2
So, you need to allow the button to show on the custom one.
Thanks so much!
¡Hola!

Pruebe estos y vea si le ayudarán. Si no recuerdo mal, ocultarán el botón de control.
[CÓDIGO=javascript]//Para ocultar:

Eli.MobileControls.controlButton.parameters.enable = falso
Eli.MobileControls.controlButton.removeFromScene()

//Mostrar:

Eli.MobileControls.controlButton.parameters.enable = verdadero
Eli.MobileControls.controlButton.addOnScene()[/CÓDIGO]

Y para ocultar todos los botones, creo:
[CÓDIGO=javascript]Eli.MobileControls.hideButtons() // ocultar
Eli.MobileControls.showButtons() // mostrar[/CODE]
Hello, if I want to hide all but two buttons that I need to remain active, how should I write the script?


Autor: Hakuen Studio​


Introdução

Se você já tentou fazer jogos para celular, sabe que pode ser um desafio colocar botões na tela, já que existem muitos dispositivos móveis com diferentes tamanhos e resoluções de tela. Portanto, decidir o tamanho e a posição desses botões pode ser uma dor.

Este plugin implementa botões na tela de forma responsiva, ou seja, seus tamanhos e posições serão ajustados automaticamente de acordo com o tamanho da tela do cliente. Também pode ser renderizado fora da tela do jogo (nas barras pretas).

Características
  • Adicione botões responsivos na tela para jogos móveis.
  • Ocultar/mostrar botões na mensagem.
  • Botão especial que pode mostrar/ocultar todos os outros botões.
  • Dois tipos de botões de movimento: direcional e joystick.
  • Desative o movimento da tela sensível ao toque
  • Desativar menu de toque duplo
  • Trabalhar com diagonais
  • Atribua botões a qualquer tecla do teclado ou chamada de script.
  • Imagens frias e quentes para cada botão.
  • Defina a vibração para botões regulares.
Como usar / Atualizar Log
Termos de uso

Hi, when I switch to my cell phone the ringtone works but it also makes the character walk. For example, the attack button also makes you walk, is this normal? It helps me
Hi, when I switch to my cell phone the ringtone works but it also makes the character walk. For example, the attack button also makes you walk, is this normal? It helps me
Hi there!

I do not understand the problem.

1 - The ringtone works but also makes your character walk. What do you mean by ringtone?
2 - The attack button also makes you walk. What is the attack button, and what he does do? Are you using it with another plugin?

I guess first you need to download my sample project and test the plugin there so you can understand how it works. After that, you move it into your project and test it there.

As you can see on the video you posted, which is the one I did showing off the plugin, you just need to attach the keyboard buttons to the mobile screen buttons. My buttons on the screen will just simulate the ones that already work on the keyboard.

Otherwise, you will need to give me more details on how you setup the plugin and what he is doing, like a video or screenshots of your configuration/problem happening.
Thanks for the answer, when I use it to shoot, the character walks, the ideal would be to throw the arrow and the character stays still
Hi there!

I do not understand the problem.

1 - The ringtone works but also makes your character walk. What do you mean by ringtone?
2 - The attack button also makes you walk. What is the attack button, and what he does do? Are you using it with another plugin?

I guess first you need to download my sample project and test the plugin there so you can understand how it works. After that, you move it into your project and test it there.

As you can see on the video you posted, which is the one I did showing off the plugin, you just need to attach the keyboard buttons to the mobile screen buttons. My buttons on the screen will just simulate the ones that already work on the keyboard.

Otherwise, you will need to give me more details on how you setup the plugin and what he is doing, like a video or screenshots of your configuration/problem happening.
Thanks for the answer, when I use it to shoot, the character walks, the ideal would be to throw the arrow and the character stays still
I still did not understand entirely your problem. But it seems to me that you attached the same keyboard button to two different mobile buttons, so they are doing the same thing.

Otherwise, read my previous post and try to answer/test what I suggested.
I still did not understand entirely your problem. But it seems to me that you attached the same keyboard button to two different mobile buttons, so they are doing the same thing.

Otherwise, read my previous post and try to answer/test what I suggested.
the button is ok where to shoot with the character walking, but I want him to stay still, but I can't, as if I had pressed two buttons

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