Ui Switch - Input Lag Issue

Discussion in 'How Can I...?' started by micdune, Mar 11, 2018.

  1. micdune

    micdune Boxer

    Joined:
    Dec 27, 2016
    Messages:
    57
    Likes Received:
    13
    Hi,
    My game is controlled using a switch button and i have the following setup to unlock worlds/buttons located on my main menu: i have duplicated the game ui a number of times with event observer for distance on them. So reaching a particular distance will switch to a particular ui duplicate with an unlock event for a button.

    The setup works fine but my problem is that there's an input lag when switching ui ( one second or so) and that's a deal breaker for the gameplay.

    I was wondering if anyone had any idea of how i could address this problem or if it's even some kind of bbox issue that might be fixed in upcoming updates.
     
  2. AaroArts

    AaroArts Miniboss Boxer

    Joined:
    Jun 22, 2016
    Messages:
    1,546
    Likes Received:
    826
    Do you have any open animations set up on the UI controls?
     
  3. micdune

    micdune Boxer

    Joined:
    Dec 27, 2016
    Messages:
    57
    Likes Received:
    13
    Actually i thought about that and i've changed open/idle and exit frames numbers to 0. I assumed having some frame delay would create the lag but alas not.
     
  4. AaroArts

    AaroArts Miniboss Boxer

    Joined:
    Jun 22, 2016
    Messages:
    1,546
    Likes Received:
    826
    Can you post a video example of whats happening?
     
  5. micdune

    micdune Boxer

    Joined:
    Dec 27, 2016
    Messages:
    57
    Likes Received:
    13
    Well the video wouldn't show much of the problem since it's a control thing: the character can move left or right when you tap (switch button). However when the game switches ui, there's a small gap where you can't switch at all (it comes back to normal afterwards). So it happens only during a fraction of time but that's enough to spoil the gameplay.
     
  6. AaroArts

    AaroArts Miniboss Boxer

    Joined:
    Jun 22, 2016
    Messages:
    1,546
    Likes Received:
    826
    It could be because the taps of the Switch reset when the UI changes?

    I’m not sure if it’s been fixed but there was a bug a while back where the Switch button wouldn’t switch in the right direction after a Game Over (UI change), so you had to tap twice to get the Switch back to normal in-game.

    Any advice @Andy @ZackGriset?
     
  7. micdune

    micdune Boxer

    Joined:
    Dec 27, 2016
    Messages:
    57
    Likes Received:
    13
    Ah right, thanks for the info, that might be it.
     
  8. ZackGriset

    ZackGriset Avid Boxer

    Joined:
    Oct 3, 2017
    Messages:
    252
    Likes Received:
    354
    Hey @AaroArts and @micdune . I really want to see this. A visual would really help us and a bbdoc too. I'm totally up for brianstorming solutions, but getting a bbdoc to check out would probably be the most efficient. Can you please send a video and/or bbdoc to support@buildbox.com?
     
    AaroArts likes this.
  9. micdune

    micdune Boxer

    Joined:
    Dec 27, 2016
    Messages:
    57
    Likes Received:
    13
    Please check the attached bbdoc, the game switches ui when the score (distance) reaches 8. You will notice that the character control becomes unresponsive (counter reaches 10).

    Thanks for any insight!
     

    Attached Files:

    Last edited: Mar 12, 2018
  10. ZackGriset

    ZackGriset Avid Boxer

    Joined:
    Oct 3, 2017
    Messages:
    252
    Likes Received:
    354
    Awesome :) Thanks man!
     
  11. micdune

    micdune Boxer

    Joined:
    Dec 27, 2016
    Messages:
    57
    Likes Received:
    13
    Attached a file with my previous post :)
     
    ZackGriset likes this.
  12. Christoph

    Christoph Miniboss Boxer

    Joined:
    Oct 4, 2015
    Messages:
    2,807
    Likes Received:
    2,309
    Some event observer bugs have been fixed for the next release. Here’s the hope your problem gets resolved with it as well because one of them was lag when switching between UIs. Not sure about the switch control though.
     
    micdune likes this.
  13. micdune

    micdune Boxer

    Joined:
    Dec 27, 2016
    Messages:
    57
    Likes Received:
    13
    Cheers, fingers crossed then!
     
    Christoph likes this.

Share This Page