end of layout

Get help using Construct 2

Post » Tue Jan 22, 2013 3:20 pm

Hi, there is this condition "end of layout" but i can't understand how construct understand that layout is finished! anyone can guide me?? thanks
B
17
S
5
G
3
Posts: 76
Reputation: 2,948

Post » Tue Jan 22, 2013 3:43 pm

This is where the Manual comes in Handy. It has a reference for all the system events. Here is the one for End of Layout: https://www.google.com/url?q=https://www.scirra.com/manual/124/system-conditions&sa=U&ei=RLP-UKKZMcPiiwLPtoCABg&ved=0CAcQFjAA&client=internal-uds-cse&usg=AFQjCNGSpKMI1Jwo5PWtDBvZ2k49hz09rw

gah... I hate how the URLs from this site paste in...

Anyway, the moral of the story, is RTFM...

Start & end

On end of layout
Triggered when the layout is ending. This can happen when the project goes to a different layout or when the project closes.

On start of layout
Triggered when the layout begins.
BluePhaze2013-01-22 15:44:30
B
49
S
11
G
10
Posts: 1,833
Reputation: 14,418

Post » Tue Jan 22, 2013 3:43 pm

The end of layout is triggered when you use the "Go to layout" system action, it's simple as that.
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 » Fri Apr 26, 2013 8:48 pm

@Kyatric

What if you have 3 different sprites on a layout, and you put > Sprites on Destroyed, > Go to next layout

However, once just 1 of the sprites is destroyed it automatically goes to the next layout.

how would you be able to make it so that ONLY once all sprites have individually been destroyed, that the system will proceed to the next level?

I really need help with this issue, Kind Regards
B
16
S
3
G
2
Posts: 62
Reputation: 3,225

Post » Fri Apr 26, 2013 9:07 pm

You can use the Sprite.Count expression to get the count of your sprites. If the total is zero, they are all gone and you can switch layouts.
ImageImageImage
B
67
S
19
G
122
Posts: 3,207
Reputation: 73,401


Return to How do I....?

Who is online

Users browsing this forum: gregorysforster and 24 guests