What could be clearing my arrays?

Discussion and feedback on Construct 2

Post » Fri Mar 01, 2013 4:19 am

Is the array in a container? Then deleting an object from the container might clear the array?
B
7
Posts: 38
Reputation: 476

Post » Fri Mar 01, 2013 2:35 pm

Yeah you're right adagar, the array disappears (array.count = 0) when you switch layouts or restart the same layout.
B
54
S
28
G
18
Posts: 1,520
Reputation: 24,990

Post » Fri Mar 01, 2013 9:53 pm

[QUOTE=ramones] Yeah you're right adagar, the array disappears (array.count = 0) when you switch layouts or restart the same layout. [/QUOTE]

@ramones and... I assume that's not the behavior it's *supposed* to have?

It doesn't seem to clear it out if it's not part of a family...
B
20
S
10
G
4
Posts: 106
Reputation: 4,219

Post » Fri Mar 01, 2013 10:06 pm

I shouldn't think so .. you should make a bug report.
B
54
S
28
G
18
Posts: 1,520
Reputation: 24,990

Post » Mon Mar 04, 2013 8:44 pm

This also happens to me, but I didn't pay any attention to it because I thought it was my code doing something wrong, and haven't had time to look into it yet.

Basically, what I have is this:

if keyboard "A" key is pressed AND array = 0 -> populate array

And if I change layouts, the array goes back to 0. It's also global.andreyin2013-03-04 20:45:52
B
106
S
35
G
36
Posts: 792
Reputation: 24,703

Previous

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 7 guests