How Can I Add Multiple Control Type

Discussion in 'How Can I...?' started by Akhele, Mar 22, 2018.

  1. Akhele

    Akhele Boxer

    Joined:
    Dec 9, 2017
    Messages:
    15
    Likes Received:
    2
    Hello world !

    I need to add multiple control type in my game
    for example
    in the settings the player can switch between using the buttons to move or the accelerometer
     
  2. itzonator

    itzonator Serious Boxer

    Joined:
    Dec 18, 2017
    Messages:
    595
    Likes Received:
    230
    Try creating two separate GamePlay Worlds, one world would have buttons to move, the other world would have accelerometer.
    To navigate to each world, add a Navigation Button.
     
    Akhele likes this.
  3. Akhele

    Akhele Boxer

    Joined:
    Dec 9, 2017
    Messages:
    15
    Likes Received:
    2
    itzonator fist thanks a lot for your answer

    but I have a complicated game with more than 30 world
    I can't multiply all this worlds

    I need a solution more professional
     
  4. itzonator

    itzonator Serious Boxer

    Joined:
    Dec 18, 2017
    Messages:
    595
    Likes Received:
    230
    How many WORLD UI's you have available?

    You might have 30 Worlds, but you can have just 1 World UI for all. Therefore, create 2 World UI's for all worlds. No need to create separate World UI for each world.

    1. World UI with buttons to move (30 Worlds would link to this World UI)
    2. World UI with accelerometer (30 Worlds would link to this World UI)

    Just make sure you rename each World UI to the appropriate name to know which one is which.
     
    Xoctrebla and Akhele like this.
  5. Akhele

    Akhele Boxer

    Joined:
    Dec 9, 2017
    Messages:
    15
    Likes Received:
    2
    Yes 2 world UI
    But in this case the player will always need to choise one of them in any world during the game
    I want it to be just once and the player modify it in the settings
    Like the most games
     
  6. itzonator

    itzonator Serious Boxer

    Joined:
    Dec 18, 2017
    Messages:
    595
    Likes Received:
    230
    You cannot create such thing with BuildBox, based on my knowledge with it. To have a switch button in Settings to change controller's mode. I shared with you how would I do it :)
     
    Akhele likes this.
  7. Akhele

    Akhele Boxer

    Joined:
    Dec 9, 2017
    Messages:
    15
    Likes Received:
    2
    thanks a lot
    I found a way to do it based on your idea
     
  8. itzonator

    itzonator Serious Boxer

    Joined:
    Dec 18, 2017
    Messages:
    595
    Likes Received:
    230
    ok Like my posts if you find this helpful. :)
     
  9. Akhele

    Akhele Boxer

    Joined:
    Dec 9, 2017
    Messages:
    15
    Likes Received:
    2
    Done
     
    itzonator likes this.
  10. Appossible

    Appossible Avid Boxer

    Joined:
    Aug 14, 2017
    Messages:
    198
    Likes Received:
    56
    So what is the way to do that? Could you please share it?
     
  11. Akhele

    Akhele Boxer

    Joined:
    Dec 9, 2017
    Messages:
    15
    Likes Received:
    2
    Yeah of course

    at first I've create two UI worlds
    one for the buttons and other one for the accelerometer

    and I've put a button to exchange the controle's type
    so the player can change it while playing the game
    I've tested it in my phone and it's good enough for now at least

    [​IMG]

    [​IMG]

    [​IMG]
     
    Krazy Jay likes this.
  12. Houlther

    Houlther Boxer

    Joined:
    Mar 26, 2018
    Messages:
    4
    Likes Received:
    1
    This is what exactly i am looking for. thank you for sharing the ideas.
     

Share This Page