Mouse&Keyboard object accessibility [+workaround]

This forum is currently in read-only mode.
From the Asset Store
Hand-painted tiles, objects, animated objects, and background to build a colorful Mayan civilization environment.
  • okay, i still think the mouse&keyboard (M&K) object should be global in the sense that it's not added to layouts but the entire application/game itself.

    because creating events using M&K requires the M&K object in the layout, creating multiple event sheets each with their own M&K objects and then bringing them all together into one layout brings a few questions:

    • do i have to add the M&K object to this layout for the imported event sheets to work?
    • will the layout run without it's own M&K object?
    • do i have to copy and paste all the M&K objects from all other layouts?

    i think having to add the M&K object every time a new event sheet needs to access the actions and conditions of the M&K object is inefficient

    Doppel's Workaround:

    Yeah i know what to do:

    -Create M&K object

    -Change it to Global

    -In layers copy the M&K object

    -And paste it to the new layer (on the layer!)

  • Are you making a new layout each time you want a new event sheet or something? You only need one M&K object per layout...

  • Add one M&K to the first layout, and tick 'Global' (common properties). It will be accessible via all layouts.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • that doesn't work for me, i tried making it global but i still can't select it in the event editor of another layout

    as for the multiple layouts and event sheets, what i usually do is play around with various custom engine parts and each part is done in separate layouts each with it's own event sheet and i do include only one mouse and keyboard object per layout. what i'm having problems trying to figure out is when i try to combine all the different parts together into one new layout

    oh and curious, how do i access event sheets that i have added through the "Manage event sheets" button?

  • Yeah i know what to do:

    -Create M&K object

    -Change it to Global

    -In layers copy the M&K object

    -And paste it to the new layer (on the layer!)

  • aha! yes, that's a good workaround for now but it could become annoying to have to do that everytime i create a new layout. thanks Doppel!

  • oh and curious, how do i access event sheets that i have added through the "Manage event sheets" button?

    Click "edit" next to the event sheet in the App properties.

    Or double-click the event sheet name in the project window.

  • ah, so that how it's done! the project window, however, only display event sheets connected to layouts, not separately created event sheets, so there's nothing to double click on.

  • Huh? It shows all of my event sheets in my project tab:

    <img src="http://xs125.xs.to/xs125/08125/project_window458.png">

    All of those event sheets were created separately except for "Layout 1," "Layout 2," and "testScreen 2" which are the default event sheets. They're all there whether I'm on a layout that uses them or not.

  • okay, i just did a quick test and it appears that the event sheet does not show up right away, i had to save the file and then reopen it to be able to see the new event sheet

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