(Delete) Unable to activate nearest object

Bugs will be moved here once resolved.

Post » Sun Jul 28, 2013 8:37 pm

Link to .capx file:
https://docs.google.com/file/d/0B7p49JKt0CGLRnRiY0pJbndoSEE/edit?pli=1

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    FMistakes2013-07-31 09:57:38
B
13
S
4
G
2
Posts: 22
Reputation: 1,516

Post » Mon Jul 29, 2013 12:30 am

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
https://docs.google.com/file/d/0B7p49JKt0CGLMm80X2N1NDgyTGc/edit?usp=sharing
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
B
13
S
4
G
2
Posts: 22
Reputation: 1,516

Post » Mon Jul 29, 2013 4:05 am

Oh my god, That's because I used the condition "when key is down" instead of "pressed". I'm so sorry :))
B
13
S
4
G
2
Posts: 22
Reputation: 1,516


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest