Do global events exist in Construct 2 ?

0 favourites
  • 3 posts
From the Asset Store
Globals 2.0
$3.99 USD
Globals 2.0 stores and group variables. You can also load and save data (variables) from/to JSON files.
  • 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.

  • 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.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thanks a lot Kyatric!

    It's exactly what I wanted.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)