How to create levels in a single layout?

Discuss game development design and post your game ideas

Post » Sat Dec 20, 2014 7:28 pm

I have a seperate layout for each screen.
Layout1- for start screen
Layout2- for level choose screen
Layout3- to start playing my level 1st

suppose i want to create 100 levels, so i need 100 layouts for each levels?? if not then in only one layout, how do i create my 100 levels?
B
2
Posts: 2
Reputation: 154

Post » Sat Dec 20, 2014 7:46 pm

There's nothing wrong with multiple/tons of layouts. I think it's a good way to go, really. But to do it all on one, you'll either have to have judicious use of layers or have events spawn in everything at once. Or, I suppose, you could line the levels all up and move the camera to different zones. But, really, is there a problem with having layouts for each thing?
B
103
S
38
G
19
Posts: 962
Reputation: 17,996

Post » Sat Dec 20, 2014 7:55 pm

So I can make 100 layouts for 100 levels??
B
2
Posts: 2
Reputation: 154

Post » Sat Dec 20, 2014 9:08 pm

so i need 100 layouts for each levels??

no

So I can make 100 layouts for 100 levels??


yes
B
24
S
9
G
4
Posts: 1,646
Reputation: 6,596

Post » Fri Dec 26, 2014 11:26 am

I had the same question like birdfiregames ,but how make events and objects that appear in all Layouts??
Sorry for my Bad Englisch
B
8
S
1
Posts: 41
Reputation: 550

Post » Fri Dec 26, 2014 7:37 pm

LINE000 wrote:I had the same question like birdfiregames ,but how make events and objects that appear in all Layouts??
Sorry for my Bad Englisch



Just put the common events in a distinctive even sheet and then include it when you need it.
B
9
S
3
G
1
Posts: 128
Reputation: 1,116

Post » Sat Dec 27, 2014 9:10 am

Uniform wrote:
LINE000 wrote:I had the same question like birdfiregames ,but how make events and objects that appear in all Layouts??
Sorry for my Bad Englisch



Just put the common events in a distinctive even sheet and then include it when you need it.


How to add common events???
and what with objects?
B
8
S
1
Posts: 41
Reputation: 550

Post » Sun Dec 28, 2014 12:25 am

Just create an event sheet, call it common.
Code your logic you want to share with every layout. And then go to the layout's events sheet (for instance the one that is created by default) right click and include your common event sheet.
B
9
S
3
G
1
Posts: 128
Reputation: 1,116

Post » Sun Dec 28, 2014 1:10 am

Also look at Global layouts and the 'Global' object property.
B
24
S
9
G
4
Posts: 1,646
Reputation: 6,596

Post » Sun Dec 28, 2014 2:55 am

If you plan your layout right you can make all 100 levels in one layout it just depends on the type of game you're making and what you need it to be like.
For example you can have groups of logic dictating the behavior of enemies, the player and even power-ups or items depending on a global variable that carries the current level.
Also the sprites have to be in the layout so if you use "re-usable sprites for items" in which each frame contains one image of a different item you can spawn them as needed and have them change to the correct frame on command.
Again it depends on the game your'e building and your current needs. I did that for FreeFall Bird. I have only 3 layouts. one of which is the actual game while the first is just the intro screen and the other is the credits screen. Everything else is handled in events.(lots of carefully planned events i might add)
Freefall Bird
B
47
S
9
G
5
Posts: 281
Reputation: 5,803


Return to Game Development, Design & Ideas

Who is online

Users browsing this forum: No registered users and 0 guests