(Delete) Unable to activate nearest object

  • Link to .capx file:

    docs.google.com/file/d/0B7p49JKt0CGLRnRiY0pJbndoSEE/edit

    Steps to reproduce:

    1. Run project

    2. Test "8direction-movement" behavior of object "P1P1" with arrow keys.

    3. Press "J" for switching to object P1P4

    (it is the nearest to object "Ball")

    4. Close project

    5. Disable toggle actions 23-25 to turn on switching from object "P1P4" to other nearest to "Ball" object.

    ==

    6. Add "Else" conditions to events 14,18,22

    Observed result:

    After pressing "J" once, object "P1P3" is active

    It's also impossible to set "P1P4" "8direction-movement" active.

    ==

    after step 6 everything works, but sometimes incorrectly

    Expected result:

    After pressing "J" once, object "P1P4" is active

    After pressing "J" once again, object "P1P3" is active

    ==

    after step 6 everything is fine

    Browsers affected:

    Firefox: yes

    Internet Explorer: yes

    Opera: yes

    Operating system & service pack:

    Windows Vista sp2

    Construct 2 version:

    R139 Free Edition

  • Well, here is another version. Just 3 objects,

    and 2 small changes (action by LeftClick and ignorance of user input instead of "8direction-movement" activation)

    Link

    docs.google.com/file/d/0B7p49JKt0CGLMm80X2N1NDgyTGc/edit

    Steps to reproduce:

    1. Click left mouse button to control nearest object

    Observed result:

    10% of clicks make no effect

    Expected result:

    100% of cliks make effect

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Oh my god, That's because I used the condition "when key is down" instead of "pressed". I'm so sorry :))

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