Array

For questions about using Classic.

Post » Tue Sep 06, 2011 11:44 am

I'm trying to understand and work with arrays.
I've read the wiki and C2-article about it.

Using it in CC (v0.99.84), is hard to understand, because I wanted to see what's inside the array, using debug-mode, but I get a result I did not expect.

In the array-object I inserted the following properties:
x: 4
y: 4
Z: 0

My expection would be, that the array now looks like this:
0,0,0,0
0,0,0,0
0,0,0,0
0,0,0,0

When running debug mode, the instance of the array shows the following:
1,0,0 value: 0
2,0,0 value: 0
3,0,0 value: 0
4,0,0 value: 0

What does the "value" mean? Which value is it showing? Perhaps the value of a coordinate?
B
16
S
5
G
7
Posts: 599
Reputation: 5,000

Post » Tue Sep 06, 2011 1:08 pm

I think debug mode in CC will only show values of 1-D array, so better not use it and make your own, with e.g. Text object. There is an example on the forum, I'll try to find it.

first example in the postNoga2011-09-06 13:11:25
ImageImage
B
25
S
6
G
8
Posts: 773
Reputation: 6,643

Post » Tue Sep 06, 2011 5:27 pm

Thanks, Noga.
B
16
S
5
G
7
Posts: 599
Reputation: 5,000


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 5 guests