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
58
S
23
G
22
Posts: 890
Reputation: 16,790


Return to How do I....?

Who is online

Users browsing this forum: clissy09, Gravity17, hyem, LaurenceBedford, oosyrag, radu191289, raulcg1981 and 4 guests