Embed layout into layout ?

Get help using Construct 2

Post » Sun Feb 02, 2014 7:35 pm

Hi there

I was wondering if theres a way to embed a Layout into another Layout, like Flash does for movies.
Thus, I could call anytime complex items, like pop up windows, galeries, that are fully defined into their own layout

B
32
S
14
G
5
Posts: 232
Reputation: 5,502

Post » Sun Feb 02, 2014 8:07 pm

That would be really nice, but no, that is currently impossible.
B
94
S
33
G
20
Posts: 438
Reputation: 17,605

Post » Sun Feb 02, 2014 8:20 pm

@AllanR : thanks for the answer.
Any idea on how I could deal with complex object on screen (object made with many objects) ?
B
32
S
14
G
5
Posts: 232
Reputation: 5,502

Post » Sun Feb 02, 2014 10:51 pm

In the paid Construct 2 version, you can create Containers, which is basically an object made with many objects.

Also, something that may be helpful is using an event sheet that is included in all your other event sheets with events/functions that are common to each of them.

Ex: In the current game I'm creating, I have an event sheet called `GlobalLevel`, and I have three layouts and event sheets called `Level01`, `Level02`, and `Level03`. My `GlobalLevel` event sheet in included in each of the levels. Why? My `GlobalLevel` has about 50+ events in it that are common to each of the levels. My level event sheets have about 1-3 events in them, in which all I do it change some global parameters/variables and then called my start level function in `GlobalLevel`. This setup has saved me tremendous amount of work, made things easier to read, and very easy to create entirely new levels. It may or may not also work for you.
B
20
S
4
G
1
Posts: 185
Reputation: 2,563

Post » Mon Feb 03, 2014 8:24 am

@danialgoodwin : Thanks for the reply !! I knew about event sheets, I found this function so great that I wished the same existed for layouts themselves. I'll have a look at Containers. Seems to be able to fullfill my needs.
B
32
S
14
G
5
Posts: 232
Reputation: 5,502


Return to How do I....?

Who is online

Users browsing this forum: Apollo14, MaujDeveloper, Yahoo [Bot] and 1 guest