1 event sheet = xx layouts

Get help using Construct 2

Post » Wed Sep 04, 2013 7:49 pm

Hello,
when I have 40 Layouts connected to 1 Event sheet, how am I supposed to set some action for a specific layout?

I mean something like this:

Condition: On start of layout number XX > Action: something, something...

So when for example layout number 30 appears I want to be a specific text object invisible (or something like that)

Or when I have 40 layouts and 1 Event sheet, what If I want to different actions happen in all layouts.
B
14
S
4
Posts: 110
Reputation: 1,538

Post » Wed Sep 04, 2013 8:13 pm

@Ashley . ASSSHHLEEYY I TOLD YOU TO MAKE A COMPARE LAYOUT CONDITION 3 TIMEEEZZZZZZZ
NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
For now, you can create a "CurrentLayout" variable, and change it ever time you change a layout, like when going through a door in a platformer game. Then, do events like "On Start Of Layout AND compare variable:CurrentLayout to "layout name" -----> action.
HARMLESS SIGNATURE THAT IS VIEWED BY OTHERS AS OFFENSIVE AND CONTROVERSIAL
B
14
S
3
G
3
Posts: 356
Reputation: 4,377

Post » Wed Sep 04, 2013 8:27 pm

@fassFlash There is already a LayoutName expression under the system object, I don't know what you need more !

On start of layout     -> Do common things
--subevents
-LayoutName = "xxxx" -> Do this
-LayoutName = "yyyy" -> Do that
B
71
S
30
G
25
Posts: 984
Reputation: 19,503

Post » Wed Sep 04, 2013 8:35 pm

thank you Magistross

didnt notice...
B
14
S
4
Posts: 110
Reputation: 1,538

Post » Wed Sep 04, 2013 8:36 pm


Thanks.
HARMLESS SIGNATURE THAT IS VIEWED BY OTHERS AS OFFENSIVE AND CONTROVERSIAL
B
14
S
3
G
3
Posts: 356
Reputation: 4,377

Post » Thu Sep 05, 2013 12:51 am

I prefer putting stuff unique to certain layouts on their own event sheets and then using an Include to add everything from the main event sheet in there. It's just more organized.

So for me it goes something like
Global Events : character controls, enemy AI, etc
Level 1 Events: Include Global Events, unique puzzle events, level start/end events
Level 2...
Level 3...
Etc
B
35
S
9
G
4
Posts: 201
Reputation: 5,170

Post » Thu Sep 05, 2013 5:24 am

@Ahr Ech: If I understand correctly you have event sheets with specificities according to each layout, and all those event sheets are included in a single main event sheet, right ?

Why not do the opposite ?
Have all the common mechanics in a "Common" event sheet and then have One event sheet per layout in which you can put the specifics but also include the "Common" event sheet ?
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
291
S
114
G
95
Posts: 7,293
Reputation: 70,144

Post » Thu Sep 05, 2013 7:08 am

@Kyatric: What you're suggesting there is exactly what I was trying to say. I'm just terrible at explaining things, I guess. Lets hope I never try to write a tutorial!
B
35
S
9
G
4
Posts: 201
Reputation: 5,170

Post » Thu Sep 05, 2013 4:28 pm

@Ahr Ech: Nevermind, reading again what you wrote, it's obvious now that's what you were saying. It was "late", I got things messed up and misunderstood it, my bad.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
291
S
114
G
95
Posts: 7,293
Reputation: 70,144


Return to How do I....?

Who is online

Users browsing this forum: dop2000, KTML5 and 32 guests