Inherrit Layer Example

Post your own tutorials, guides and demos.

Post » Sun Oct 05, 2008 1:16 pm

You may or may not have noticed that in layer properties theres a field for 'inherrit layer'. If you tick this it means that layer will be given all the objects on that layer as well. This is an IDE side thing only, and was implimented originally so if you have like 20 levels in your game, and each level has a layer which contains the health, score, current weapon, etc, you could make a separate layout called 'scraps' or something, and make all the levels inherrit various layers from 'scraps' which are common between all the levels.

Anyway, this example demonstrate how you can exploit this feature to make a parralaxing screen ;)
B
4
S
2
G
5
Posts: 641
Reputation: 3,011

Post » Sun Oct 05, 2008 3:10 pm

That looks pretty cool! Would definatly save the number of objects visible in the editor during editing and make levels more consistant (GUI always in the same place, etc).
"Construct 4 lets YOU make advanced games! (maybe)" Construct Classic - Examples Kit
B
86
S
28
G
13
Posts: 2,092
Reputation: 15,009

Post » Sun Oct 05, 2008 3:37 pm

I was wondering what the hell that did... I played with it once and I couldn't figure it out lol.

~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
45
S
17
G
37
Posts: 2,853
Reputation: 25,966

Post » Sun Oct 05, 2008 5:59 pm

This seems a great way to simplify the UI across levels, as well as duplicate backgrounds!

However, I don't think this is any good for paralaxing because anything and everything you add is also added to the next inherited layer, which is just a darker clone.

I would think it is best to just make your layers and detail them how you want, then hide them to continue working in the main layer.

Upon reading the above again, I think I nailed the "that's obvious" parts. Hrm, ah well!
B
2
S
2
G
4
Posts: 156
Reputation: 1,762

Post » Mon Oct 06, 2008 1:14 pm

Whoa, this is sweet. I mean, the parallax thing is sweet too, but the UI thing is sweet. I just tested it out with a little "Include event sheet" action and my eyes popped out. You can have a whole other layout running in your layout without the Layout object :shock:

It's like we're getting a new feature in between builds! Keep 'em coming, what else haven't you told us? :P
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Mon Oct 06, 2008 2:16 pm

LOL yeah I had a bad habbit of beginning to add features and not finish them off properly or document them....heres another one though..

Make a new folder in your Construct directory (C:\Program Files\Scirra\Construct) called 'Images' (the installer was ment to do this part but didn't heh...u only need to do this once)

Now in the animation bar, go to an animation and right click and select 'launch explorer'. A folder will open containing all the png files of that animation which construct has exported. You can then drag and drop these into another image editor like photoshop or something, edit them, and hit save. When you are done switch back to construct and there will be a message box saying 'Click ok to reimport the images that have been exported to explorer'. Click the ok button and the changes should appear.

However this feature was somewhat incomplete because it doesn't allow you to modify hotspots, or add additional frames...so that was a work in progress.....think it's a worthy feature or should I remove it ?
B
4
S
2
G
5
Posts: 641
Reputation: 3,011

Post » Mon Oct 06, 2008 9:35 pm

I say keep it. Anything that adds functionality to the animator is good.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971


Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 1 guest