How do I use the same 'engine' event sheet for all levels

Get help using Construct 2

Post » Wed Oct 21, 2015 7:16 pm

I'm making a game with multiple different game modes, but aside from a few things they all operate in the same way. How do I make it so every level uses the same engine, and then select parts of the code depending on what level it is.

In other words, with 2 game modes, one that times the player and one that counts deaths, how do i make it so if they choose the time version, when they win it takes them to the time layout, and on the deaths one, if they win it takes them, to the deaths layout, without copying the player control event sheet for every single level?

This is hard to explain XD
B
6
Posts: 46
Reputation: 342

Post » Wed Oct 21, 2015 7:34 pm

Include event sheets into layout event sheet, or change each layouts event sheet to be a single one.

So break your event sheets down into sections, then include them when you need them.
You think you can do these things, but you can't, Nemo!
Just keep reading.
Just keep learning.
B
65
S
16
G
9
Posts: 1,429
Reputation: 12,708

Post » Wed Oct 21, 2015 7:36 pm

Either you attach the same event sheet to every layout in the layout properties, or you give every layout their own event sheet and include the "engine"-event sheet..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Thu Oct 22, 2015 2:12 am

Ne7herM0St, you may also want to consider using C2's Plugin for Functions...https://www.scirra.com/manual/149/function

i'm developing a game and using the logic like you....encapsulating actions in several functions and calling those functions from different levels. the above suggestions and functions should allow you the flexibility and power to quickly reuse the same actions over-and-over again from different levels. hope that helps.
B
130
S
40
G
10
Posts: 131
Reputation: 13,420

Post » Sat Oct 24, 2015 2:13 am

LittleStain wrote:Either you attach the same event sheet to every layout in the layout properties, or you give every layout their own event sheet and include the "engine"-event sheet..


Including the engine event worked great, thanks ^.^'
B
6
Posts: 46
Reputation: 342


Return to How do I....?

Who is online

Users browsing this forum: Cubus32, tarek2 and 9 guests