Multiple Event Sheets sharing Arrays

0 favourites
  • 3 posts
From the Asset Store
Bring the Wild West to life with this Cowgirl Sprite Sheet!.
  • 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

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • set the array global an define it on the first layout ?

  • 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.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)