Still...STUPID arrays

Get help using Construct 2

Post » Thu Jul 12, 2012 12:42 am

So I am still have trouble with arrays.

I loaded an example file.

https://docs.google.com/open?id=0B5puA55FudSeQjJRU285LUlobEk

What is supposed to happen is this.

At start of layout the function will analyze the contents of the array varTowers and depending on what # is in the array fill the blank boxes on the RIGHT with either a tower OR a lock.

I have not written the filling part yet, I just want to get the contents of varTowers and print it in the text box.

Thanks,

SparkDad
B
12
S
1
G
1
Posts: 50
Reputation: 1,228

Post » Thu Jul 12, 2012 1:10 am

It's not as much the usage of the array as the one of the order in which events are executed.



Also, setting the size first allows to set the size for good and makes sure you have enough room in the array to store values.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,805


Return to How do I....?

Who is online

Users browsing this forum: Zebbi and 23 guests