Change level screen

Get help using Construct 2

Post » Fri Jan 03, 2014 3:31 pm

Hi guys, I tried to remake a my old project (video) in HTML5. I have some questions and problems to make in construct2:
1)To change level (or rooms or you like), do I need more layers?
2)I tried to create a clone object for player with same Y coordinate at the end of first level, but don't work.
Cannot create an instance of the object type 'playerbox2': there are no instances of this object anywhere in the project. Construct 2 needs at least one instance to know which properties to assign to the object. To resolve this, add at least one instance of the object to the project, on an unused layout if necessary.
B
15
S
2
G
1
Posts: 17
Reputation: 1,015

Post » Fri Jan 03, 2014 3:32 pm

There is the game youtube.com/watch?v=XQzuRwIs154
B
15
S
2
G
1
Posts: 17
Reputation: 1,015

Post » Fri Jan 03, 2014 3:38 pm

Add an Object Layout, to put all your objects in. C2 needs at least one instance to know its properties.

About your levels as shown in the video, you can either have a large layout and move your camera around (creating a transparent sprite with scrollto behavior) as the player reaches a certain x or y. Or you create a new layout and use the "go to Layout" event as your player overlaps an invisible sprite or certain x/y value5Type2014-01-03 15:40:44
B
22
S
7
G
4
Posts: 154
Reputation: 3,709

Post » Sat Jan 04, 2014 1:35 am

@Plaoo Each Layout is a new level/room/whatever you want to call it.
B
49
S
12
G
10
Posts: 1,833
Reputation: 14,603

Post » Sat Jan 04, 2014 3:43 pm

Thanks guys, now I'm going try to fix player's coordinates when the level changes.Plaoo2014-01-04 16:52:54
B
15
S
2
G
1
Posts: 17
Reputation: 1,015

Post » Sat Jan 04, 2014 10:40 pm

Done!
System -> player.X >= ViewportRight(WindowWidth) -> System Set scroll X scrollx+800
System -> player.X >= ViewportLeft(WindowWidth) -> System Set scroll X scrollx-800
resolution 800*600
B
15
S
2
G
1
Posts: 17
Reputation: 1,015


Return to How do I....?

Who is online

Users browsing this forum: ome6a1717 and 16 guests