Smart Map Buttons (Customizable Map Scene interface)

Discussion in 'JS Plugin Releases (RMMV)' started by bluebooth, Feb 16, 2016.

  1. lucia116

    lucia116 Villager Member

    Messages:
    15
    Likes Received:
    1
    First Language:
    japan
    I am bad at English. I'm sorry.
    I just want to use a mobile(touch).


    For example,


    1。open the INIT event at position (0, 0), and then select page 2


    2。 スクリーンショット 2016-03-26 23.15.00.png


    is this OK?


    but not move...
     
    #21
  2. bluebooth

    bluebooth Veteran Veteran

    Messages:
    95
    Likes Received:
    115
    First Language:
    English
    Primarily Uses:
    N/A


    No worries, I'm sure my Japanese would be much worse. :)


    SceneManager._scene.isPressed('up');  is true if the Up Map Control is currently pressed.


    SceneManager._scene.isButtonEnabled('up');  is true if the Up Map Control is visible.


    Where you currently have the line: Plugin Command: MapControls setButtonState up true $gameSwitches.value(2)... you could switch that line instead to "Move Route: Player: Move up."  Then the Player would move up whenever the Up Map Control is pressed.
     
    #22
  3. Lakaroth

    Lakaroth Veteran Veteran

    Messages:
    272
    Likes Received:
    129
    First Language:
    English
    @bluebooth 


    I have follow your answer to Lucia116, but i have a problem, the hero move by 2 tiles instead 1... how can i fix it?


    I have an idea, i'm not a developer so just my 2 cents...


    You dont think it will be more easy if in the JS code, instead when the script turn ON a button (if pressed)
    The script tell to the engine not only Turn On Button (so change graphics) but DO that function.
     


    I mean, if i use arrows or gamepad and press buttons they turn ON and character Do the relative action but if i press a button with the mouse they turn on, but the character don do nothing.
     
    Last edited by a moderator: Jun 21, 2016
    #23
  4. bluebooth

    bluebooth Veteran Veteran

    Messages:
    95
    Likes Received:
    115
    First Language:
    English
    Primarily Uses:
    N/A
    Hey, Lakaroth, thanks for the feedback!


    I'm not sure what you mean by your feedback?


    If you press a button with the mouse, the character should still perform the button action.


    How is your project setup?  Can you post a screenshot of your project plugins setup?


    This is probably an issue due to splitting larger plugins into more specific plugins as I've updated my scripts.


    I've noticed when I use the mouse the character moves twice instead of once.  I'm wondering if this is an unfortunate side-effect of using an input history queue (necessary for multi-touch).  RMMV does not make distinction between mouse input and touch input, so fixing that could be... interesting.


    Here's my setup:

    WM_PluginOrder.png
     
    #24
  5. Lakaroth

    Lakaroth Veteran Veteran

    Messages:
    272
    Likes Received:
    129
    First Language:
    English
    Hi bluebooth, my feedback is positive :)
    Your plugin is amazing !


    i'm doing some test, then i'll update this post thanks a lot!


    EDIT:
     @bluebooth dear blooboth i have fix almost everything but i find a bud if i try my game on device, that bug there's only in devices and no on the PC.


    If the plugin BBS_MultiTouch.js is ON i cant' skip messages on mobile.


    I have try it with : Intel XDK Wifi test on an iPhone 5S.


    I don't know if u need others information let me know.


    I have also try it in browser version, works on desktop don't work in mobile.

    Best
     
    Last edited by a moderator: Jun 21, 2016
    #25
    bluebooth likes this.
  6. bluebooth

    bluebooth Veteran Veteran

    Messages:
    95
    Likes Received:
    115
    First Language:
    English
    Primarily Uses:
    N/A
    Aight, sounds like I'll need an override for message boxes.


    There was an override already in place.  The code for testing whether the Map Controls had dominance however, was too vague.  I've made it more


    specific.  Will post the updated version soon.


    Are you still getting the two movements when click bug as well?
     
    Last edited by a moderator: Jul 1, 2016
    #26
  7. Lakaroth

    Lakaroth Veteran Veteran

    Messages:
    272
    Likes Received:
    129
    First Language:
    English
    @bluebooth sorry for the delay i don't received the notify :)
     


    Yeah, everything works, two click works, just that bug.
     
    #27
  8. bluebooth

    bluebooth Veteran Veteran

    Messages:
    95
    Likes Received:
    115
    First Language:
    English
    Primarily Uses:
    N/A


    I've put up a new version which should fix the issue (it did on my end!).


    Can you confirm it fixes the issue for you as well?
     
    #28
    Lakaroth likes this.
  9. Lakaroth

    Lakaroth Veteran Veteran

    Messages:
    272
    Likes Received:
    129
    First Language:
    English


    Sure i can, not immediatly, but i'll do that ASAP and i'll tag u here thank you very much for your support.

    Best
     
    #29
  10. luiscesjr

    luiscesjr Veteran Veteran

    Messages:
    117
    Likes Received:
    11
    First Language:
    Portuguese
    Hi people!


    I'm having an issue that it's like this:


    - Buttons shows up on screen and they are highlighted when keyboard is pressed, but upon being touch, the character movement through screen touch/mouse click still works.


    - As I stated, character moves with keyboard and the respective buttons get highlighted. But probably because of the character movement still working through click I can't click on the buttons. It's like I'm touching the screen and the character moves there, and so the buttons do not work.


    - If I travel from one map to another the controls disappear and will not show back even if I get back to previous map.


    Hope I was clear on what I am experiencing. I set everything just like your demo, the common events and all. I just changed the switches and variables not to mess with the ones I already use, and I am calling the plugin script to disable the screen touch. But it doesn't seem to do the trick.


    Thanks in advance!
     
    #30
  11. bluebooth

    bluebooth Veteran Veteran

    Messages:
    95
    Likes Received:
    115
    First Language:
    English
    Primarily Uses:
    N/A


    Hey @luiscesjr, sorry to hear you're having a rough time with this plugin.  Can you please post a screenshot of your project plugin list and what version of the Smart Map Buttons, and MultiTouch plugins you are using?
     
    #31
  12. Black Mamba

    Black Mamba Veteran Veteran

    Messages:
    261
    Likes Received:
    76
    First Language:
    pt-br
    sry for revive post, is possible to add custom buttons?
     
    #32
  13. TouchManage

    TouchManage Warper Member

    Messages:
    1
    Likes Received:
    0
    First Language:
    French
    Primarily Uses:
    RMMV
    Hello guys,

    When I click on the buttons on the Demo project, nothing is happening, the character is not moving at all. Is it suppose to be like that, and then for me to set the event on my side to make the character move, and else?

    Thanks! And I hope someone is still active on this amazing thread! :rhappy:
     
    #33

Share This Page