Array creation

Get help using Construct 2

Post » Mon Jun 10, 2013 12:51 pm

Hi,
Is there any way to create an array with its multiple element values at a time?

Suppose i want to create an array, A[5]=[23,65,34,12,45]
In such case, I have to insert each element one by one in Construct2 whereas in programming languages, we can instantiate/create such array at a single line of code.

I wanna know whether there is any way to declare such array with single line action/code. (without writing five actions to insert five elements separately)

Please suggest if anybody knows.
B
9
S
3
G
3
Posts: 28
Reputation: 2,641

Post » Mon Jun 10, 2013 6:44 pm

Functions could help you.

See this example.
B
78
S
32
G
27
Posts: 1,021
Reputation: 20,952


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 26 guests