moving and copying event sheets

0 favourites
  • 5 posts
From the Asset Store
14 amazing sound files of game events like Level Ups, Level Completes, object spawn, object taking etc.
  • Hello peoples,

    in Construct 2 you cannot move or copy and paste a event sheet. Can I not do this? Or is there a setting I can change?

    • Thanks
  • You can right click on the event editor and pick "Include Event Sheet" and choose the one you want from the list. And I am not sure about this one, but I think you can also set the event sheet that the layout uses by going into the layout's properties and pick it from the drop down list.

  • You can copy and paste between two existing event sheets but keep two things in mind:

    1) Minor, but there must be something in the target event sheet because you have to right click on that something in order to be able to access the paste option. EDIT: Sorry. My mistake. You can paste into an empty event sheet if you use the paste option on the tool bar.

    2) Much more serious, if you copy and paste global variables between two event sheets in the same project, the variables created in the target event sheet will be renamed (for example, globalvariable becomes globalvariable2. Here's the problem. If you then go back and delete the original variables, you'll delete all of the events and actions that reference those variables! This is a side effect of the work Construct 2 does to keep your game always runnable.

    To get around that you can save the game as a project, and then replace the event sheet (which are XML files) with the desired event sheet.

    It goes without saying that you should make a backup copy before you do this!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • kittiewan: You shouldn't have to copy global variables, global variables are reachable through event sheets.

    If you copy events accessing a global variable from event sheet 1 to event sheet 2, things work.

    You could even have an even sheet with all your global variables, and still those variables would be reachable from any event sheet in the project.

    I really don't recommand the xml road there as if you need to copy a lot of events, you're probably doing something wrong and would have more power and elegance out of an include.

  • Unfortunately, just because you shouldn't NEED to do something doesn't mean you won't! (I speak from unfortunate experience here!)

    I should have made it clear in my previous post that Cut and Paste will work to move items, including global variables, from one sheet to another. Copy and Paste is where the danger lurks.

    If you copy and paste, rather than cut and paste global variables, and then make the mistake of deleting the original globals, you'll essentially trash any events that used those original global variables.

    Many people tend to avoid Cut and Paste, considering it more dangerous than Copy and Paste followed by delete, but in this case the reverse is true.

    I've reported as a bug that you can delete global variables without any warning that the conditions, actions and expressions that reference it will also be deleted. EDIT: Ashley says this will be fixed in the next build.

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