How do I reuse and integrate a layout and event sheet to different projcets?

0 favourites
  • 6 posts
From the Asset Store
Adjusting the game screen for different resolutions (Letterbox scale)
  • i have ui that i want to reuse across different projects

    is this possible?

  • You can right-click the layout and copy it, then paste to another project. Then copy-paste all events from the event sheet. If there are any objects or variables missing, the editor will tell you.

  • You can right-click the layout and copy it, then paste to another project. Then copy-paste all events from the event sheet. If there are any objects or variables missing, the editor will tell you.

    is there a way for me to troubleshoot this? i can't figure out what it could be that's preventing me from copying this layout onto another project

    is it same filenames? same variables?

    initially i saw one textbox that had an instance variable and thought deleting that would've solved my problem, but it's still giving the same error

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • This likely means that you have two different objects with the same name in your projects. For example, Player sprite - in one project it has 8direction behavior, and in another Platform behavior. Or in one project it has "health" instance variable, and in another project doesn't.

    In this case Construct can't paste objects between projects.

    You can try selecting and copying small groups of objects from the layout and pasting them on a blank layout in another project. If there are no error, try another group, until you find the object that is incompatible.

  • i found out that it's some objects in the layout having a similar name to one from the other project

    i was finally able to copy and paste by renaming, but then started encountering an issue when i try to run the project and it's just a blank screen. looked at the console log and saw this

    i noticed that some functions in the copy/pasted event sheet are getting auto renamed having a number added at the end when there are similarly named ones within the project, but the actions that are calling those functions still have the original name

    but the worst of this is if i happen to leave this be and not fix these actions calling the wrong function and then close the project, the c3p file is now corrupted and i can't reopen it

    do you happen to know how that can be fixed?

  • No, sorry. I hope you made a backup copy.

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