How do I delete a specific number from an array

Get help using Construct 2

Post » Mon Sep 26, 2016 8:46 pm

Hi HELP,

I have an array populated with random numbers 1-9. I want to be able to find all the number 5s in the array and change them to another number. I have tried everything, there must be a simple solution. Thanks
D
B
17
S
2
Posts: 29
Reputation: 779

Post » Mon Sep 26, 2016 9:01 pm

Try:

Array| For each X element -> Array| Set value at Array.CurX to 'your number you want'
Array| Current Value=5

This is one event, with one action.
B
24
S
3
G
1
Posts: 451
Reputation: 2,165

Post » Mon Sep 26, 2016 9:25 pm

Will give it ago. Thanks
B
17
S
2
Posts: 29
Reputation: 779


Return to How do I....?

Who is online

Users browsing this forum: Kermad, yiuyiu6666 and 24 guests