How do I add to array

Get help using Construct 2

Post » Tue Sep 01, 2015 8:16 pm

Array >> Set At X

I want to take the value in the array at x1 then plus 1 to it.

Example X1 = 5 then becomes X1=6

I will also need to know how to take away a value from the array X1
B
23
S
8
Posts: 115
Reputation: 2,640

Post » Tue Sep 01, 2015 8:21 pm

Use "Set at X" and set the value to an expression like this:

Code: Select all
Array.At( X_INDEX ) + 1

Subtraction follows a similar pattern.
Moderator
B
113
S
41
G
20
Posts: 1,586
Reputation: 19,126

Post » Tue Sep 01, 2015 8:48 pm

Awesome, Thank you for the help.
B
23
S
8
Posts: 115
Reputation: 2,640

Post » Wed Sep 02, 2015 6:46 pm

@Taser please don't create topics asking the same question.
Moderator
B
113
S
41
G
20
Posts: 1,586
Reputation: 19,126


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 18 guests