maintenance (ex: pause window)

0 favourites
  • 5 posts
From the Asset Store
Pixel Sprites ala ReactorCore - Urban Maintenance - Large pack of sprites!
  • I have 35 Layouts, each one is a level.

    The Pause is a sprite (background like a window) with sprites (buttons: home, restart, etc). See attach.

    Each layout has your own "Pause" (position, sprites properties).

    If I want to change a sprite´s position from the Pause, Do I must to change the 35 layouts?

    The EventSheet is easy to maintan, because I´m using one for the 35 laoyts, but the "Layout" part is hard.

    I´m doing it in the best way? Is there a smarter way to do it?

    Thanks

  • You could setup pause in general event sheet, and then triggers it when neccessary

    i.e.

    on touched "pause button"

    -- set time scale to 0

    -- system spawn object 'white box' on layout...

    -- system spawn object 'home button' on layout...

    -- system spawn object 'replay button' on layout...

    -- system sprawn object 'play button' on layout...

    on touched "play" button

    -- "white box" destroy

    -- "home button" destroy

    -- "replay button" destroy

    -- set time scale to 1

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Look at Global Layers you then only need to maintain one layout and changes will be made to all https://www.scirra.com/manual/85/layers

  • To second volkiller's suggestion, yeah, you should really be using global layers for all UI elements. They're far easier to maintain for projects designed like yours.

  • Yep!

    Global layer is exact what I need.

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