Import an Eventsheet into another

0 favourites
  • 14 posts
From the Asset Store
Convert multiple Excel files into JSON files and import them into construct3.
  • Hey Guys

    I've seen it done somewhere, but I can't find the reference anymore. SO here the question. I would like to gather all global varables in on sheet and then import it into all other event sheets....

    Any ideas?

  • You don't need to import global variables to other event sheets. Global variables are automatically accessible everywhere in the project, regardless of whether the event sheet is included anywhere.

  • yeah, but it can be good for better overview, i think its done with xml editing of the project

  • ok....thanks

    Is there a way to link eventsheets?

  • You can include an event sheet in another. Right click on the main event sheet, and select Include Event Sheet.

  • Thx....that's what I was looking for

  • yeah, but it can be good for better overview, i think its done with xml editing of the project

    You don't need to import global variables to other event sheets.

    vtrix: If you make a new event sheet, create/cut-paste all your global variables in the sheet, you absolutely DON'T need to include it.

    Just having this event sheet in the project is enough.

  • ow yes i reacted too quickly, i was thinking he wanted to move every global to one sheet, if you have already connected these globals, once you cut these to place somewhere, all your events will be gone, i think

  • In fact once you cut the global variable, the related events indeed disppear, but once you paste it, they all are back <img src="smileys/smiley1.gif" border="0" align="middle" />

    I was wondering about the same issue until I tested it and was pleasantaly surprised by that behavior.

  • I had a situation once where i needed to cut and past all events from a sheet to another . The original sheet had several global variables. When i tried to cut and paste them all in the new sheet(including all global vars) C2 wouldn't allow me saying something about the globals. It should work shouldn't it ? It appears to be a bug.

  • Kyatric, Thats exactly what i do have a event sheet called vars <img src="smileys/smiley1.gif" border="0" align="middle" /> Its tidy.

  • I had a situation once where i needed to cut and past all events from a sheet to another . The original sheet had several global variables. When i tried to cut and paste them all in the new sheet(including all global vars) C2 wouldn't allow me saying something about the globals. It should work shouldn't it ? It appears to be a bug.

    kiyoshi: I tested the cut/paste of global vars in the same project from an event sheet to another (and only global vars) in r76, recently in my current entry for the comp.

    All went smoothly, so I guess either it was buggy or not fully implemented that one time you tried.

    I believe it's now working.

  • Yeah it was in R75 i believe. Didn't test it on R76 but if on your side it worked than it must have been fixed thanks :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • When that happens I just put the two event sheet side to side (neat thing when you want to compare event sheet by the way) and drag&drop the global variable first and then the events.

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