Do global events exist in Construct 2 ?

Get help using Construct 2

Post » Mon Mar 05, 2012 7:56 am

Hi Everyone,

I hope I post this topic in the right section. So, I would like to know if it is possible to make "global" events with Construct 2.

Let's take an example. I have 2 layouts using 2 separated event sheets. Like this:
Layout A --> "Event Sheet A"
Layout B --> "Event Sheet B"

Now, there is a specific event in "Event Sheet A" (which only applies to Layout A). Imagine that I want to use it too for Layout B. Do I have to "copy-paste" the event from "Event Sheet A" to "Event Sheet B" ? Or is there a way to make an event available for another Layout ?

I was thinking of a "class" in object oriented programming where you can have public functions and private functions.

I hope I was understandable. Again, I'm really sorry for my mistakes. Thanks a lot guys.
B
41
S
10
G
7
Posts: 182
Reputation: 9,999

Post » Mon Mar 05, 2012 9:58 am

You would have to put the event in a common event sheet (a third one) and then include this event sheet in the two others.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Mon Mar 05, 2012 3:50 pm

Thanks a lot Kyatric!
It's exactly what I wanted.
B
41
S
10
G
7
Posts: 182
Reputation: 9,999


Return to How do I....?

Who is online

Users browsing this forum: chcteacher, Televangelist and 28 guests