How do I manage my layers smartly ?

Get help using Construct 2

Post » Fri Jun 03, 2016 10:17 pm

Hello,

I know that having many layers can cause performances issues.
Currently I have 10 layers and I am wondering if that is too much ?
Is there any tricks / methods, to handle Z-order OR effects such as Blend Mode Source Out other than by putting objects on different layers ?

Many thanks
B
9
S
1
Posts: 59
Reputation: 609

Post » Fri Jun 03, 2016 11:01 pm

What exactly are you trying to do ?

Usually I have 3 layers. Background, Playable, HUD/Menu
Using R243 for all examples
B
69
S
20
G
6
Posts: 379
Reputation: 9,699

Post » Sat Jun 04, 2016 12:50 am

if i may add in a question here as well I know that many gimp and other art/animation program have the ability to combine layer and was wondering if construct two have any add-on for this ability. Cause often times i use like ten layers to create a Hud or background art and need other art pieces to stay put and not move....It would come in handy if that is possible with out copy pasting delete layers.
B
51
S
24
G
6
Posts: 391
Reputation: 7,820

Post » Sat Jun 04, 2016 12:03 pm

Well I have a couple of things that are using masks so they need their own layer with "Force own texture" on. Otherwise if there is other objects in the same layer the effect will apply to those items as well.
Also I find it handy to have a layer for "ennemies" one for "hero" and one for "props" and "backgrounds" (I also have multiple backgrounds with different parallax) so that you don't have to check the Z-Order on each spawn or make any code to keep the Z-order the way you want.
B
9
S
1
Posts: 59
Reputation: 609

Post » Sat Jun 04, 2016 1:04 pm

Number of layers usually has no effect, unless most of the layers have changed their opacity, have effects applied, have a blend mode other than 'Normal', or use 'force own texture'. However typically there is no performance impact from using multiple layers with default settings.
What I know would fill a Book , what I don't know would fill a Library
B
37
S
12
G
29
Posts: 331
Reputation: 16,499

Post » Mon Jun 06, 2016 12:37 pm

ok really good to know, thanks @granpa !
B
9
S
1
Posts: 59
Reputation: 609


Return to How do I....?

Who is online

Users browsing this forum: adamebastin, ketramtu18 and 8 guests