How do make multiple levels in one layout

Get help using Construct 2

Post » Sun Oct 29, 2017 9:30 am

Hello guys I am trying to make a puzzle game with about 100 or more levels. I have make the core concept and i want anyone to help me to complete it.

Can we make multiple levels in one layout or we need different layout for each level.
B
11
S
4
G
2
Posts: 38
Reputation: 1,867

Post » Sun Oct 29, 2017 10:12 am

both options, but for best performance i think is better 100 layouts for 100levels
B
19
S
8
G
8
Posts: 595
Reputation: 6,915

Post » Sun Oct 29, 2017 10:22 am

can you tell me how can we make 100 levels in one layout and if i make 100 layout for 100 levels does it make my game slow or not. And I am making the game for mobile.
B
11
S
4
G
2
Posts: 38
Reputation: 1,867

Post » Sun Oct 29, 2017 11:15 am

@NN81, You are wrong. Performance depends on implementation and not on the number of layouts.
Of course if you dump thousands of objects from all 100 levels onto one layout, this will be bad for performance. But obviously this is not a very good technique.

@Zion
It depends on you game.
I'm making a puzzle game with 200+ levels and I only have one layout for all of them. My layout contains all fixed interface elements like HUD, dialog windows etc. and an empty "Game" layer.
On start of every level I read parameters for this level from a text file (which I made in Excel), and create required objects on the "Game" layer.
And all this works really fast :)
Image

Did I help to fix a problem in your game? You can buy me a cup of coffee :) If you'd like to hire me, please see this post
B
17
S
9
G
127
Posts: 1,765
Reputation: 67,851

Post » Sun Oct 29, 2017 11:29 am

@dop2000 If I make 100+ levels each on different layout and only use one event sheet will it affect the performance as I am not sure that the mobile can handle it or not and also Thank you for replying
B
11
S
4
G
2
Posts: 38
Reputation: 1,867

Post » Sun Oct 29, 2017 11:48 am

@dop2000 performance i mean, obviously depends on the game, that in general every level requires something new assets ecc..
so @Zion, unless you want to do 100 similar/equal levels, using more layouts is the wiser choice.
B
19
S
8
G
8
Posts: 595
Reputation: 6,915

Post » Sun Oct 29, 2017 12:33 pm

@Zion
Again - in terms of performance it doesn't matter how many layouts or event sheets you have.
Other things are much more important - the size of your images and animations, efficiency of your code etc.

Large number of layouts will make it harder to manage your project. Imagine you have 100 layouts and decide to make a small change on all of them - this will take an hour! So if you can, you should minimize the number of layouts.

If your code for 100 levels is basically the same, of course you should not make 100 identical event sheet.
Image

Did I help to fix a problem in your game? You can buy me a cup of coffee :) If you'd like to hire me, please see this post
B
17
S
9
G
127
Posts: 1,765
Reputation: 67,851

Post » Mon Oct 30, 2017 11:46 am

@dop2000 & @NN81 if I make 100 layout with 1280x720 window and layout size, only use one event sheet with less events, about max 20-25 sprites on each layout (sprites are also small in size) and only changing the position of the sprites in each layout. Can I make the game for mobile accordingly to this.
B
11
S
4
G
2
Posts: 38
Reputation: 1,867

Post » Mon Oct 30, 2017 2:23 pm

Sure you can
B
19
S
8
G
8
Posts: 595
Reputation: 6,915

Post » Mon Oct 30, 2017 2:25 pm

Thank you
B
11
S
4
G
2
Posts: 38
Reputation: 1,867

Next

Return to How do I....?

Who is online

Users browsing this forum: AbusiveChAoS and 10 guests