How to create a 'wide' level?

Get help using Construct 2

Post » Fri Feb 03, 2017 3:36 pm

Hi there,

I'm making different levels, normally I have enemy units spawn from the left of the screen which travel to the right.

Now I'm making a level with buildings and props. I could use the same method for units, that is, spawning them ordered around x seconds at random positions.

However, this is highly convenient, for this new static level, as I intend to make a wide level and set the building objects and props in a planned manner on fixed locations.

I was wondering, how do I make a 'wide level' that has object coming from the left? For all other levels I'm using the same layout width for all previous levels, and I'm not sure I should mess with that?

I'm thinking I need to expand the layout, however, the layout only expands to the right. I need space on the left, not right. I *could* mess around with the margins I guess, but that's global as well.

Any solutions?

- R
B
13
S
7
G
4
Posts: 143
Reputation: 3,581

Post » Mon Feb 06, 2017 7:39 pm

It is not entirely clear on what exactly you are trying to accomplish.

You want the level to scroll?
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
23
S
6
G
1
Posts: 1,419
Reputation: 4,857

Post » Mon Feb 06, 2017 8:43 pm

Hello,

thanks for your reply.

The level doesn't need to scroll, I was looking for an efficient way to make a long level, as in width. I can't change the layout width since it only extend to the right. I want the buildings to come in from the left. I was thinking later on to simply temporarily extend the margins in the editor to as far as possible. So I can put all the buildings in the editor and give them a bullet behavior. This will make it look like you fly over the buildings.

Here's what I mean;

Image

Imagine the black squares are the buildings, the red square is the player, the blue line is the layout border.

As you can imagine, I would need a lot of space on the left in the margin area. I have not tested yet, but I read that the max margin size is 10000. But anyway, I was just wondering if there are more efficient ways of have objects come in the screen, while still retaining the ease of being able to place objects (buildings) at will, so I can design the level in the editor.

If I were to spawn them by seconds for example, I'd have to place them, test, modify, etc. that wouldn't work for designing.

So my question also is, how do other people do this? And why can't I extend the layout to the left (irrelevant perhaps but still a valid question).

Thanks. - R
B
13
S
7
G
4
Posts: 143
Reputation: 3,581

Post » Mon Feb 06, 2017 10:43 pm

Hello Rudi55,

I believe you can extend the layout width to accomplish what you need.

1) Set the layout width in the editor to what you need (ignoring the fact that it extends to the right).
2) Place the building objects & the player where you need them to be in the editor.
3) In the event sheet, under the "On start of layout" event, use the "System --> Scroll to object" behavior, setting the object as the player.

The scroll to object behavior will then move the "camera view" to the player on the right side of the layout while keeping the buildings to the left of the layout.

I hope this helps you.
B
10
S
3
G
2
Posts: 8
Reputation: 1,548


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 26 guests