How do I create a room for my player to enter?

Get help using Construct 2

Post » Wed Mar 19, 2014 7:18 am

Awesome. Now, the layer I'm trying to add it to says "it needs an expression after it". I'm not quite sure what this means.
--

So Say We All
B
13
S
4
G
1
Posts: 37
Reputation: 1,330

Post » Wed Mar 19, 2014 7:21 am

Edit: Ok, so I added "x" after the layer, aka tiledbackground14.x and my player now spawns where I want him to. However, I'm unable to move my character at all. Anything else I need to add to the spawn event?
--

So Say We All
B
13
S
4
G
1
Posts: 37
Reputation: 1,330

Post » Wed Mar 19, 2014 7:22 am

How do you move the character in your former layout?
B
14
S
3
G
1
Posts: 255
Reputation: 2,027

Post » Wed Mar 19, 2014 7:26 am

Oh, do I have to add all of that to the new layout? Isn't there any way I can transfer the events from the first layout into the second without writing it all over again? I'd heard that creating tons of event pages for layouts can bog down the game, so I'm trying to avoid this.
--

So Say We All
B
13
S
4
G
1
Posts: 37
Reputation: 1,330

Post » Wed Mar 19, 2014 7:30 am

You can use eventsheets in several layouts. Just add them.
B
14
S
3
G
1
Posts: 255
Reputation: 2,027

Post » Wed Mar 19, 2014 7:33 am

Right, of course, but I'd seen on another thread that the more event sheets you add, the more bogged down your game will become, and it might affect gameplay. Is this true?
--

So Say We All
B
13
S
4
G
1
Posts: 37
Reputation: 1,330

Post » Wed Mar 19, 2014 7:34 am

Also, if I have an inventory of items, will this carry over as well if I spawn it? Or will I have to do something special with it?
--

So Say We All
B
13
S
4
G
1
Posts: 37
Reputation: 1,330

Post » Wed Mar 19, 2014 7:46 am

Acutally the programmer decides whether a project becomes bogged down or not. Always try to use groups, function, comment your code etc. Never make anything twice.
You can store the inventory data in an e.g. array, Hashtable, dictonary etc.
B
14
S
3
G
1
Posts: 255
Reputation: 2,027

Post » Wed Mar 19, 2014 7:54 am

Perfect. Thanks! I really appreciate it :D
--

So Say We All
B
13
S
4
G
1
Posts: 37
Reputation: 1,330

Previous

Return to How do I....?

Who is online

Users browsing this forum: David181, jorgmaquoi, unicornspitfire and 21 guests