Help with arrays

For questions about using Classic.

Post » Sat Jun 09, 2012 6:33 pm

Hi sorry im bothering everybody again but im stuck with arrays.
What i want to do is turn all the value's that are in the array into text and display them in text object like a 3x3 array would look like :
111
202
322

Can anyone help.
If there is already a awnser im sorry i could not find it.
B
9
S
2
Posts: 100
Reputation: 1,335

Post » Sun Jun 10, 2012 1:44 pm

How about:
+Array:For each object
->System:Create object Text at Array.CurrentX*10, Array.CurrentY*10
->Text:Set Text to Array(Array.CurrentX,Array.CurrentY,1)
B
6
S
1
G
1
Posts: 69
Reputation: 1,019

Post » Sun Jun 10, 2012 1:55 pm

It doesnt seem to work can you post a .cap
B
9
S
2
Posts: 100
Reputation: 1,335

Post » Sun Jun 10, 2012 2:58 pm

Yes I can. https://dl.dropbox.com/u/52670878/example.cap
Works fine for me.
B
6
S
1
G
1
Posts: 69
Reputation: 1,019

Post » Sun Jun 10, 2012 3:11 pm

Thanks for the .cap it seems to work now, just one more thing how would i go about making it so that the user can copy the code and paste it in a txt file for egsample.
B
9
S
2
Posts: 100
Reputation: 1,335

Post » Sun Jun 10, 2012 3:46 pm

Dont worry about it i figured it out
B
9
S
2
Posts: 100
Reputation: 1,335


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests