mysterious 0's in arrays

Get help using Construct 2

Post » Sat Nov 23, 2013 7:58 am

Hello again Scirra community,

A quick array question...

I noticed that every time I 'insert' or 'push' (front/bacl) values in an array there's always these increasing amount of zeroes added to the array

I've gotten around it by just cleaning the array later on but any insight would be great as to what could be causing these

Thanks community!
B
3
Posts: 3
Reputation: 181

Post » Sat Nov 23, 2013 12:42 pm

1D-array?
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
22
S
9
G
1
Posts: 788
Reputation: 3,788

Post » Sat Nov 23, 2013 2:11 pm

Not sure what you're referring to. Can you provide an example?

Note if you extend the array, the object will fill the new elements with zeroes, which is by design.
Scirra Founder
B
399
S
236
G
89
Posts: 24,519
Reputation: 195,351


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 14 guests