Move/drag events between sheets

Discussion and feedback on Construct 2

Post » Fri Mar 23, 2012 8:40 pm

This would be really nice when you are refactoring/structuring your code.
B
5
G
1
Posts: 31
Reputation: 1,012

Post » Fri Mar 23, 2012 8:41 pm

The same goes for globals really
B
5
G
1
Posts: 31
Reputation: 1,012

Post » Fri Mar 23, 2012 8:50 pm

...copy/paste?
Image
B
225
S
27
G
13
Posts: 1,774
Reputation: 18,024

Post » Sat Mar 24, 2012 2:39 am

Copy/paste works, even between different projects if you are careful to copy in the globals first and then the events that reference them. (Not sure about moving both together.)

EDIT: You also need to have created all of the other objects/assets referenced in the events or you'll get errors telling you you cannot paste because something is missing. This includes instance variables created on objects.

BTW, if you don't find Paste in the context menu when you right click on an event sheet, don't forget Paste on the toolbar.kittiewan2012-03-24 02:54:00
B
29
S
11
G
12
Posts: 281
Reputation: 11,868

Post » Sat Mar 24, 2012 7:32 am

Dosn't really work. If you make a copy of a global it will get a new name, and all events will still refer to the original. If you the remove the original, all references to it will also be removed and you have potentially lost a lot of work.
B
5
G
1
Posts: 31
Reputation: 1,012

Post » Sat Mar 24, 2012 2:59 pm

Improving the process of moving events between projects is on our todo list, but it's surprisingly complicated. There are many weird cases like moving an event referencing an object called "Foo" which is a Sprite, in to a project with an object called "Foo" which is a Text object - none of the events will make sense, so then you have to bring up a dialog to rename and map objects to their counterparts in the new project, and so on. It's a pretty big headache but it's on the todo list.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,468


Return to Construct 2 General

Who is online

Users browsing this forum: DTernes and 2 guests