Multiple Event Sheets sharing Arrays

Get help using Construct 2

Post » Mon Sep 16, 2013 12:04 pm

Hi, I recently separated a single event sheet into multiple event sheets. I created an event sheet to cover each type of event (ie Player Controls, etc) and kept a main event sheet for the layout.

In the main event sheet, I create "Include" statements for all the relevant event sheets. Everything seems to work fine...except for Array objects. It seems like Instance Variables related to Array objects no longer work. Values set on one event sheet cannot be accessed by another event sheet.

Any advice?

(BTW, when I separated the event sheet, I copied the events and disabled the originals. The originals still work properly if I enable them.)

Thanks
Dave
B
3
Posts: 8
Reputation: 216

Post » Mon Sep 16, 2013 12:06 pm

set the array global an define it on the first layout ? Darklinki2013-09-16 12:07:34
B
15
S
6
G
6
Posts: 512
Reputation: 5,555

Post » Tue Sep 17, 2013 4:43 am

Apologies, I just realized the issue was unrelated to arrays. I had added additional layers when I bought the Personal Version of the game. When I added layers, it changed the "Layer number" setting. So I was creating objects on the wrong layer. The arrays were innocent.
B
3
Posts: 8
Reputation: 216


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 10 guests