Check does not work well?

Discussion and feedback on Construct 2

Post » Tue Jun 06, 2017 10:19 am

https://www.dropbox.com/s/lotas2vvbdd8ogp/testKeyboard.capx?dl=0

Hello, in this example the keyboard is never read, why?:
The value of "var" is always "false".

Image

If you delete the check with the red box, then the keyboard works when the CyclePosition is > 0.5 (ok, this is correct)

Image

The keyboard should always work, in the two examples, according to the conventional programming.
B
31
S
13
G
21
Posts: 844
Reputation: 14,695

Post » Tue Jun 06, 2017 11:24 am

1/ Event 4 can never ever pick a Sprite that is not var from a previous picked list (in event 1) that only contains Sprite that is var.

2/ 'or' is a logical operator. It does really filter the picklist.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Tue Jun 06, 2017 5:20 pm

Thanks, I did not understand very well but I think I have a solution.
B
31
S
13
G
21
Posts: 844
Reputation: 14,695


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 9 guests