UCHU_MobileOperation_Modified_Ext

Discussion in 'JS Plugin Releases (RMMV)' started by Eliaquim, Nov 8, 2019.

  1. Eliaquim

    Eliaquim Raze: The Rakuen Zero's Guardian! Veteran

    Messages:
    818
    Likes Received:
    318
    Location:
    Brazil - Rio de Janeiro
    First Language:
    Portuguese - Br
    Primarily Uses:
    RMMV
    Feel free to delete this spoiler after read it.
    I'm not the author of this plugin. I found a version of him named MVP_Gamepad in someone else's game. After that, I found the original version from Uchuzine, already with some modification made by someone called NAK(or dice2000)
    You can check the link on GitHub.
    So I made an upgrade of the plugin, but I can't make an extension, but I've identified inside the plugin the modifications that I made.
    I also tried to contact Uchuzine on twitter, but he never answers me.
    [​IMG]

    You can find the original Help File opening this file and check the Japanese version(jp).
    The plugin parameters are translated into English by RyamBram. Please give credit to him.
    Original Plugin by NAK >https://github.com/DICE2000/RPGMVplugins/blob/master/UCHU_MobileOperation_Modified.js


    Introduction
    This plugin adds onscreen buttons for mobile devices. The buttons are adjustable according to portrait or landscape mode, and you can render them off-screen on the black bars.

    Features

    -----Default by Uchuzine and Nak-----

    • Shows a DPAD and Action and Cancel Button on the screen.
    • Buttons can be placed outside the game screen on the black bars.
    • Hide or show buttons through a switch.
    • Set button size in plugin parameters(it resizes the image if necessary).
    • You can configure actions for when you press or hold your fingers on the black bar.
    • You can swipe left or right on the screen and operate the functions of the PageUp or PageDown buttons.
    • Hide the buttons when the message box is open.

    -----Added by Eliaquim-----

    • You can add PageUp, PageDown, Shift, Menu buttons on the screen.
    • Buttons can blink when you pressed them(change the opacity).
    • You can choose if the cancel button will work to call the menu too or only to cancel.

    ScreenShots
    [​IMG]
    [​IMG]



    How to use
    -----Default by Uchuzine and Nak-----

    Button Images
    •Button images should be in the /img/system folder.
    •And they should be done in a 1: 1 ratio.
    •For directionals, make sure the center of the directional pad is in the center of the image.

    Button position parameters
    •For each button you can choose a preset start position:
    •left-top, right-top, left-bottom, right-bottom.
    •To change them from these initial positions you can set the margin in the plugin parameters.

    Button visible parameter
    •Set whether you want the button to appear or not. If you disable it in the parameters, you will not be able to enable them within the game.

    DPad Operation Range
    •Specifies the size of the button's tap area.
    •When 1: The touch area is the image area.
    •When 2: The touch area is twice as large vertically and horizontally (spreading 50% out of the image).

    DPad Diagonal Range
    •Determines the direction of the character. Increasing this number will cause the character to change direction and assume a diagonal, such as up + right.
    •When “0”: Only 4 directions (up / down / left / right) can be input.
    •When “0.5”: Eight directions can be input evenly.
    •When “1”: Four-way input of “upper right”, “lower right”, “upper left”, and “lower left”.
    •The higher the number, the more mistakes occur, such as "I was going to push up but it was in the upper right".
    •If there is no problem in 4 directions, specifying “0” will minimize the operation error.

    AnalogMove
    •Set this to true for compatibility with Analog Move.

    -----Added by Eliaquim-----

    You can choose if you want the buttons to blink when you pressed them.
    Set the parameter opacity for each button to 0.5 for example. Then you can set the blink parameter to higher or lower opacity.
    You also can use this plugin commands to hide all buttons or hide specific ones.

    • show X
    • hide X

    Where X can be:
    • dirpad / ok / cancel / menu / shift / pagedown / pageup / extra / all

    NOTE: In fact, only the opacity of them will be set to 0. If you press in the place they are, they will work(but not blink, in case the blink parameter is true).

    NOTE 2: In my experience, I have to test it a lot. To find the right size for my buttons on mobile. Since it not shows in the same proportion as in desktop.

    NOTE 3: You can use CommunityBasic.js to see better the positions on the desktop if you want it to show in the black bars.
    Change the parameters "screenWidth / screenHeight" to the size that you want for the screen of your game.
    And change the parameters "changeWindowHeightTo / changeWindowWidthTo" to a size that you want, like 1280x720 or 1920x1080(16:9 - that is the majority in mobile).

    Terms of Use

    Copyright (c) 2015-2017 uchuzine, NAK
    Released under the MIT license
    http://opensource.org/licenses/mit-license.php

    You can optionally credit me as Eliaquim or Rakuen Zero.
    But you must credit Uchuzine and Nak.

    Download
    UCHU_MobileOperation_Modified_Ext

     
    #1
    freelandlol and EseQueL like this.
  2. EseQueL

    EseQueL Veteran Veteran

    Messages:
    57
    Likes Received:
    20
    First Language:
    English
    Woah... I saw your thread requesting for this plugin. You actually made one on your own. Congrats :)

    Edit: my bad, turns out just an extension. Still great though. Thanks for this! :)
     
    Last edited: Nov 9, 2019
    #2
    Eliaquim likes this.
  3. Bilalichwa

    Bilalichwa Villager Member

    Messages:
    23
    Likes Received:
    5
    First Language:
    Indonesia
    Primarily Uses:
    RMMV
    Wow.. Thanks
     
    #3
    Eliaquim likes this.
  4. freelandlol

    freelandlol LvUp Member

    Messages:
    6
    Likes Received:
    5
    Location:
    korea
    First Language:
    korea
    Primarily Uses:
    RMMV
    This plug-in supports a very good operating sense of DIR-PAD.
    compatible with multi-touch.
    It is a plug-in with considerable potential.
    If improve a little bit more
    I think mobile MV performance will improve very much.
    Thank you so much:kaojoy:
     
    #4
    TenTranVN and Eliaquim like this.
  5. TenTranVN

    TenTranVN Veteran Veteran

    Messages:
    142
    Likes Received:
    16
    First Language:
    Vietnam
    Primarily Uses:
    RMMV
    Does this plugin have multi touch?
     
    #5
  6. Eliaquim

    Eliaquim Raze: The Rakuen Zero's Guardian! Veteran

    Messages:
    818
    Likes Received:
    318
    Location:
    Brazil - Rio de Janeiro
    First Language:
    Portuguese - Br
    Primarily Uses:
    RMMV
    As far as i know, it doesn't have.
     
    #6
  7. TenTranVN

    TenTranVN Veteran Veteran

    Messages:
    142
    Likes Received:
    16
    First Language:
    Vietnam
    Primarily Uses:
    RMMV
    Hi, this plugin have better support Virtual Button and Dpad of Aloe Guvner ?
     
    #7
  8. freelandlol

    freelandlol LvUp Member

    Messages:
    6
    Likes Received:
    5
    Location:
    korea
    First Language:
    korea
    Primarily Uses:
    RMMV
    Hello. Now, in my game,
    Virtual Button and Dpad of Aloe Guvner
    UCHU_MobileOperation_Modified_Ext
    I'm using both. (100EXIT A)
    Also, if you play a game that Eliaquim made,(Heroi por Acaso)
    you can see that multi-touch works perfectly. (Multi-Touch Core Support)
    Both games are on Google Play.
     
    #8
    TenTranVN likes this.
  9. Eliaquim

    Eliaquim Raze: The Rakuen Zero's Guardian! Veteran

    Messages:
    818
    Likes Received:
    318
    Location:
    Brazil - Rio de Janeiro
    First Language:
    Portuguese - Br
    Primarily Uses:
    RMMV
    They have different features. Aloe can render buttons according to the scene for example. You can attach common events into the buttons. This one don't have these features.
    So it's test and see what suits better for you ^^
     
    #9
  10. TenTranVN

    TenTranVN Veteran Veteran

    Messages:
    142
    Likes Received:
    16
    First Language:
    Vietnam
    Primarily Uses:
    RMMV
    i use IÓS :( but i will try it
     
    #10
  11. TenTranVN

    TenTranVN Veteran Veteran

    Messages:
    142
    Likes Received:
    16
    First Language:
    Vietnam
    Primarily Uses:
    RMMV
    i have a question ?
    if we use high comunitybasic changewitdth, will mobile devices have lag?
     
    #11
  12. TenTranVN

    TenTranVN Veteran Veteran

    Messages:
    142
    Likes Received:
    16
    First Language:
    Vietnam
    Primarily Uses:
    RMMV
    I tried, it was awesome and how to disable touch
     
    Last edited: Nov 13, 2019
    #12
  13. slimmmeiske2

    slimmmeiske2 Little Red Riding Hood Moderator

    Messages:
    5,688
    Likes Received:
    4,163
    Location:
    Belgium
    First Language:
    Dutch
    Primarily Uses:
    RMXP

    TrenTranVN, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.

     
    #13
    TenTranVN likes this.
  14. Eliaquim

    Eliaquim Raze: The Rakuen Zero's Guardian! Veteran

    Messages:
    818
    Likes Received:
    318
    Location:
    Brazil - Rio de Janeiro
    First Language:
    Portuguese - Br
    Primarily Uses:
    RMMV
    I don't think so. Change the windowWidth can't cause lag by itself.

    I think theres no way to to disable touch with this plugin. I use another one to do that.
    But maybe the first two parameters if I remember can disable touch in desktop. Don't remember if it will disable in mobile as well.
     
    #14
  15. TenTranVN

    TenTranVN Veteran Veteran

    Messages:
    142
    Likes Received:
    16
    First Language:
    Vietnam
    Primarily Uses:
    RMMV
    sorry

    EDIT:There was an error, when I left the screen horizontally, I couldn't start in the up, left, right direction, but I could just start in the down direction then move it to the other direction. @Eliaquim
     
    Last edited: Nov 13, 2019
    #15
  16. Eliaquim

    Eliaquim Raze: The Rakuen Zero's Guardian! Veteran

    Messages:
    818
    Likes Received:
    318
    Location:
    Brazil - Rio de Janeiro
    First Language:
    Portuguese - Br
    Primarily Uses:
    RMMV
    Hi!
    It doesn't seem an error of the plugin to me...
    But only this explanation, is not enough for me to debug the error.
    I already tested this plugin in landscape and portrait mode. Also, with a game using both(that the player can change the orientation mid-game), and I don't see this happening.

    Could you try to repeat this error in a clean project(without other plugins) and send it to me, to see if I am able to repeat and fix the error?
     
    #16
  17. TenTranVN

    TenTranVN Veteran Veteran

    Messages:
    142
    Likes Received:
    16
    First Language:
    Vietnam
    Primarily Uses:
    RMMV
    I use safari to check, if I keep the screen vertical then nothing happens. After I turned the screen, it just started to press the key down
     
    #17
  18. Eliaquim

    Eliaquim Raze: The Rakuen Zero's Guardian! Veteran

    Messages:
    818
    Likes Received:
    318
    Location:
    Brazil - Rio de Janeiro
    First Language:
    Portuguese - Br
    Primarily Uses:
    RMMV
    Well, I will try to replicate it myself to see. But if you send me a sample would be nice xD
     
    #18
  19. TenTranVN

    TenTranVN Veteran Veteran

    Messages:
    142
    Likes Received:
    16
    First Language:
    Vietnam
    Primarily Uses:
    RMMV
    You just need to create a new project and then use the mobile browser to test it, it only works for vertical screens, when using the screen rotation function on mobile devices, it still works. But it is imperative to use the first down key after each touch to move and I hope you will find it and fix it soon. This plugin is great compared to mobile devices
     
    #19
  20. Eliaquim

    Eliaquim Raze: The Rakuen Zero's Guardian! Veteran

    Messages:
    818
    Likes Received:
    318
    Location:
    Brazil - Rio de Janeiro
    First Language:
    Portuguese - Br
    Primarily Uses:
    RMMV
    Hi there!
    I make the tests here, and I can't replicate the error.
    I have tried this using my version of the plugin and the original version, both worked ok for me.
    I used android and in browser, both worked ok.
    Going to landscape to portrait and the inverse two.
    Using Rm Mv 1.6.2.
    :(
    Maybe you can alert the player if he changes the orientation it has to press the down button first. Can use an event to simulate a "pause game" and unpause after the press down button.
    Sorry for not being able to help :(
     
    #20
    TenTranVN likes this.

Share This Page