How do I match values with comp.inst.var.

Get help using Construct 2

Post » Tue Nov 03, 2015 12:54 pm

actually, i came up with a solution by now but there is something i keep wondering why it wont work as i believe it should.
Here is the idea, i have 4 objects that akt as slots. Each has its own number as a instance variable that simply presents in what order they are. I want the blue object to have its own instance variable that with SPACE button changes its value from 0 to 3. Then i want the object to move to the corresponding slot that has the same value. Interestingly enough when i compare the values in the system category and use pick by comparison, it works like a charm. But when i compare the values directly from any of these sprite objects, it will instead pick the lowest numbered object and ignore any further actions.

Why does pick by comparison work but compare instance variable not?

Capx: https://www.dropbox.com/s/o2o57d90d9z8l ... .capx?dl=0
B
47
S
10
G
5
Posts: 232
Reputation: 7,571

Post » Tue Nov 03, 2015 12:58 pm

Sprite compare instance variable should work..

System compare two values however doesn't pick any objects..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775


Return to How do I....?

Who is online

Users browsing this forum: R0J0hound, Yahoo [Bot] and 14 guests