same events in second layout

For questions about using Classic.

Post » Sun Feb 03, 2008 4:13 pm

Hi i have 2 layouts in my game.In first layout,i have some sprits and in the second layout i have the same sprits and i need also the same events.Please help me how to do it.
B
1
G
4
Posts: 6
Reputation: 1,037

Post » Sun Feb 03, 2008 5:03 pm

In Application Properties add a new event sheet, and call it something like "Common events". Paste the events you want in both layouts in to it. Then in the event sheet for each layout, right click and add an Include for 'Common events'.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Sun Feb 03, 2008 8:21 pm

Yo, includes are the bomb-diggity. Here's a screenie of my main layout's event sheet:



It has no events in it! It just has includes to other event sheets. Modularity is a beautiful thing.

By the time I'm done with the main engine I estimate that each layout will probably only have between 1 and 10 unique events, just to control level-specific stuff. Everything else will be pre-made and simply dropped into place.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 5 guests