[r149] array loopindex expression bug

Bugs will be moved here once resolved.

Post » Wed Nov 06, 2013 3:49 am

Link to .capx file (required!):

ArrayLoopindex.capx

Steps to reproduce:
1. load and start ArrayLoopindex.capx

Observed result:

loopindex expression from an array outputs 0 for each loop

e.g.
array width: 4
loopindex expression output = 0 0 0 0

Expected result:

loopindex expression from an array outputs incremental numbers for each loop

e.g.
array width: 4
loopindex expression output = 0 1 2 3

Browsers affected:
Chrome: yes
Firefox: yes
Internet Explorer: yes

Operating system & service pack:

win7 / service pack 1

Construct 2 version:

release 149 (64-bit)
B
68
S
28
G
7
Posts: 85
Reputation: 7,496

Post » Wed Nov 06, 2013 5:27 am

The "for each element" condition doesn't set the loopindex. Instead use Array.CurX, Array.CurY or Array.CurZ.
B
91
S
31
G
103
Posts: 5,234
Reputation: 67,754

Post » Wed Nov 06, 2013 5:47 am

Thanks @R0J0hound

My workaround was similar, repeat with array.width.
But I thought it supposed to work like described above.

If not, the topic can be closed.
B
68
S
28
G
7
Posts: 85
Reputation: 7,496


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests