Level design

Get help using Construct 2

Post » Sun Apr 06, 2014 6:58 am

Hi guys, just a small question...I like to make an R-Type space game...
Each level consists in a scrolling world... if it's a long level, is it right to create a very looooong layout size ????
And in that one I put my different background details sprites.... is it like this how u make a longer level design ???


thanks :)
B
38
S
16
G
2
Posts: 463
Reputation: 4,922

Post » Sun Apr 06, 2014 9:14 am

Creating one 'BIG' image will not help you in correct way. You should find a way to divide graphical elements in small pieces. First of all make a search about "tiled elements" and how people manage it.

Don't think if you make a rectangular design with small height value will make things better. If you create 3000px X 480px image, gpu's will accept it as 4096px X 4096px image.

So in this case you should consider divide parts in to small pieces and use sprite creation and destroy stuff according to your visible scene.
B
21
S
4
G
4
Posts: 161
Reputation: 3,803

Post » Sun Apr 06, 2014 10:28 am

Hi Thanks, I have made several small peaces of sprites, and that is ok ...what I need to know...for the lenght of the level...should I set the layout to the same lenght as the level ????

thanks
B
38
S
16
G
2
Posts: 463
Reputation: 4,922

Post » Sun Apr 06, 2014 11:35 am

Thats what I do in my game, layout size 2000,500 at the moment. Now whether that is a good idea or not don't look at me, as I'm a newb myself, and this is my first game...;)
B
21
S
11
G
6
Posts: 414
Reputation: 5,335

Post » Sun Apr 06, 2014 11:49 am

Another way could be to just make a background image the size of you view. (1680,1050) if that's you size.

Then at the right size just outside the screen (Assuming the player fly left), you add some spawners, which will spawn different things that fly from right to left. Could be meteors, stars, planets etc. Giving them different speed, and different layers to create depth. Then you can create the illusion that the player is flying through space, but are really just moving on a single screen, that way you can make the game level last as long as you like.

To make the stars, you add a black background (could make it with some stars on it), then you make a star layer and a spawner, that spawns stars that fly at different speed, think that would work fine.
B
44
S
11
G
2
Posts: 1,182
Reputation: 6,848

Post » Sun Apr 06, 2014 12:38 pm

I think it also depends for which format you create the game. If for desktop you can make the level sizes much bigger then when you create for mobile. Just make sure that once you fly pass certain objects, you let them destroy by the system so eventually when you progress through your level, you also clearing memory space. That's how I do it, there are many way to tackle this problem.
B
20
S
5
G
1
Posts: 148
Reputation: 1,736

Post » Sun Apr 06, 2014 2:22 pm

hi guys...to be clear :
https://www.youtube.com/watch?v=oSv6DCSZNQM
as u can see...there are several tiled sprite backgrounds...but nothing spawned randomly...but the designer has set precisely all diffrent parts how he wanted as design... this level is super long....so how should i design it in construct ?... do u understand what I mean ?


thanks :)
B
38
S
16
G
2
Posts: 463
Reputation: 4,922

Post » Sun Apr 06, 2014 2:53 pm

@mariogamer

nimos100 has the right idea. I'm writing a shooter and doing it exactly as he mentioned. I keep ONE frame for ALL my levels and change my levels with global variables, this way I can use the code to tell it how to progress the level instead of setting up sprites all over the board.

I'm writing each enemy it's own routines, and when in the level code I tell it to turn a switch on to activate whichever enemy, and give it the speed and other variables necessary, and have it spawn outside the frame on the right side of the screen (or top or bottom or left however you do it or however the enemies attack). Once it's in frame, I tell the enemy sprite to switch it's "on screen" variable (call it what you like) to let it know it's on the screen, so when it flies off the other end it can be destroyed (if the player didn't destroy it while it was in the play field).

The point is the play field stays still, and the SPRITES move to give the illusion of "flying through space". That video you posted was for a platformer game, which is COMPLETELY different because everything DOES need to be in the proper place for world exploration. But space games are different in that they are much easier to set up.

If you're going to have your level planned out, do so on paper, and use the event editor to tell it at what TIME the things should spawn. Use a global variable that counts the timer up. I suggest 2 to 4 minutes per area, and spread your enemies out through there (at 10, spawn this many of this enemy) etc. After the total area (say level 1-1) is over, reset the timer, switch the area/level to the next one on the list, repeat the process but now for 1-2, changing the times and enemies and what not. You can also use timers in this way to spawn on a higher layer maybe a sprite of the inside of a ship that you end up flying through, so it's not just for spawning enemies, you see.

Don't think too hard about it or you will burn yourself out. If you need help, just PM me and I'll do what I can.
B
27
S
7
G
6
Posts: 268
Reputation: 3,852

Post » Sun Apr 06, 2014 7:00 pm

Hi thanks for the answer...but in case I like to do exactly what u can see in the video...how would u start for level designing ?
B
38
S
16
G
2
Posts: 463
Reputation: 4,922


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 35 guests