Array Iteration Issue

For questions about using Classic.

Post » Wed Nov 07, 2012 11:32 pm

Hello, here is a little issue I faced when I was playing with Arrays.
I was trying to create a 5x5 two-dimensional array after reading a tutorial http://www.scirra.com/tutorials/307/arrays-for-beginners/page-3. The goal was to display array as a square matrix like:

0 1 2 3 4
5 6 7 8 9
....

The main thing here was to correctly insert a newline on the beginning of each row. Here are some confusing moments:

1) When I created a compare event I noticed that each new row increased X value, not Y value. The tutorial read the opposite.
2) Array property Width controls maximum X values, not Y as expected according to #1 (the same is for Height controlling max. Y values)

Shouldn't the Width and Height properties be called visa versa as long as X determines Rows (Height) and Y determines columns (Width) ?
Am I missing something in this idea?

Link to .capx sample project http://dl.dropbox.com/s/xyrc8f5ocvybden/ArrayTest.capx
My Scirra Construct2 build is 108.2 (32-bit)hddart2012-11-08 22:16:10
B
5
Posts: 2
Reputation: 356

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 7 guests