SOL in 'for each line' of ListBox

For questions about using Classic.

Post » Wed Feb 04, 2009 12:36 am

hi (and thank you, devs, for 98.7!)
in the following example, i am trying to create a number of objects equal to the number of lines found in a ListBox, and set their attributes to the values found in the respective ListBox' entries. however, it appears that the second action always treats all sprites, instead of just the one that was created last. i read that creating an object automatically puts it (alone) into the SOL, so i wanted to ask if this is a bug:
[code:1iy6gf5n]+ For each line
- Create Object: Sprite
- Sprite: Set angle to ListBox.LineText( ListBox.CurrentIndex )[/code:1iy6gf5n]demonstration .cap
B
2
S
2
G
4
Posts: 171
Reputation: 1,792

Post » Wed Feb 04, 2009 2:29 am

Can you submit this as a bug to the tracker? Thanks.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest