maintenance (ex: pause window)

Discussion and feedback on Construct 2

Post » Fri Jan 09, 2015 4:51 am

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 do not have the required permissions to view the files attached to this post.
B
18
S
4
G
1
Posts: 143
Reputation: 1,868

Post » Fri Jan 09, 2015 5:13 am

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
B
18
S
7
G
1
Posts: 783
Reputation: 4,247

Post » Fri Jan 09, 2015 6:00 am

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
B
42
S
17
G
2
Posts: 850
Reputation: 6,209

Post » Fri Jan 09, 2015 7:23 am

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.
B
57
S
15
G
11
Posts: 912
Reputation: 12,626

Post » Sat Jan 10, 2015 3:27 am

Yep!
Global layer is exact what I need.
B
18
S
4
G
1
Posts: 143
Reputation: 1,868


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 5 guests