How do I import layouts from other c2 project? Forum Home > Construct 2 General > How do I....? |
Post Reply
|
| Author | |
Post Options
Quote Reply
Topic: How do I import layouts from other c2 project?Posted: 16 Oct 2011 at 3:30pm |
|
|
Hello scirra community,
I'm doing a game with my team, but we are having a hard time importing layouts from each other's pcs. Why split the work between people, so one got level design and other got into the programming stuff. Now we have 2 layouts (one with the level, the other with the code) and we are having a hard time turning both into one layout. We saved both projects as "project folders" (for collaborative development). Is there something we're missing here? |
|
![]() |
|
Post Options
Quote Reply
Posted: 17 Oct 2011 at 6:53am |
|
|
There's normaly no "automatic" way yet.
Open both project in a single instance of C2 (open programming first, then level design). You can copy the objects to your recipient project. (let's say level design into programming) Make sure you copy all objects from Level design's layout, have the correct names etc. Then go in the event sheet of level design select the events (making sure all the objects required are created in the recipient project (audio, mouse, keyboard, sprites with correct names/instance variables, etc...)). Copy them, paste them in the recipient event sheet. Make sure that objects have different names in the project (so that you won't try to copy an instance of a sprite named Player with an instance variable "Health" onto a Sprite instance Player with an instance variable "Name" for example). Local variables may need to be done in the recipient project manually, before copy/pasting events (a yellow tooltip should let you know about this "difference of variable scope", something like that). It can be tedious (depending on the quantity of objects/events) but for now, this should be the road to take. It depends on the setup of your project. In the end, it might be easier to copy the events from programming into level design (considering sprites in programming are supposed to be placeholders whereas level design has the correct animation frames). As said earlier, just make sure that the objects the events are refering to are already present in the destination project/layout. I hope it helped. |
|
![]() |
|
Post Options
Quote Reply
Posted: 12 Nov 2011 at 3:47pm |
|
|
I just realised I never responded this post.
Thanks Kyatric! It's a lot of work but works well. In time, this will be much easier =] |
|
![]() |
|
Post Reply
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |