Layout switch stops platform movement

0 favourites
  • 4 posts
From the Asset Store
Toggles Dials Switches and Alerts ! A foundational sound grouping of Analog type switches and Steampunk effects
  • Link to .capx file (required!):

    h t t p s ://www.dropbox.com/s/fbtglobovbktauv/LayoutSwitchBugTest.capx

    (sorry wouldn't let me post links)

    Steps to reproduce:

    1. Bring hero to a complete stop

    2. Press left or right arrow key (towards exit)

    3. Without releasing arrow key, press up key (to jump)

    4. Continue through to exit

    5. Continue holding arrow key down throughout layout change

    Observed result:

    The hero remains stationary until the arrow key is released and pressed again.

    Expected result:

    The hero should (after a small pause) continue moving in the intended direction. This behaviour can be observed when moving between layouts while not following the above steps.

    Browsers affected:

    Chrome: yes

    Firefox: yes

    Internet Explorer: yes

    Operating system & service pack:

    Win 7 Pro SP1

    Construct 2 version:

    r146

  • Hi

    I just thought I'd let you know that one way to work around this bug is by setting Default controls to "no" on your hero object and using the keyboard plugin & the simulate control action to create your own custom controls.

    You would do something like this:

    Right arrow is down > Simulate platform pressing Right.

    Left arrow is down > Simulate platform pressing Left.

    On up arrow pressed > Simulate platform pressing Jump.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thanks! That did get around it pretty easily (I'd tried many other over-complicated workarounds that all failed)

  • Closing as by design. You use two separate objects on two different layouts instead of one global object, so the objects on each layout maintain their input states separately.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)