Global functions & Global groups

Get help using Construct 2

Post » Fri Jun 07, 2013 11:29 pm

Is there a way to have global functions and global groups!? When working with more than one layout/event sheet it would be very helpful.

I'm working on a mid-size project (1142 until this very moment) and I was forced to separate gameplay and screens on different layouts because the "code" was getting very "messy" having all in 2 or 3 layouts. Now the code is very clear but I have to repeat some minor groups of "code" (like switching the audio mute/not mute or changing frames for buttons to represent the hovering over effect) on every event sheet for every layout.

Thank you for your time guys :)
Lead developer at Octeto Studios

Visit our portfolio at: http://www.octetostudios.com/ :)

Facebook || Twitter || Youtube
B
36
S
7
G
5
Posts: 215
Reputation: 5,585

Post » Sat Jun 08, 2013 5:12 am

Hey Gamer, if you are working with multiple event sheets and you want them to be linked you need to "include" them with each other.

You do this by right clicking in the event sheet and selecting include.GenkiGenga2013-06-08 05:13:25
ImageImage
B
96
S
19
G
6
Posts: 1,054
Reputation: 11,457

Post » Mon Jun 10, 2013 1:23 am

@GenkiGenga wow!!! very useful.
Didn't see that option :)

Now I can have one global event sheet and include it others event sheets :)

Thank you!
GamerGon2013-06-10 01:24:17
Lead developer at Octeto Studios

Visit our portfolio at: http://www.octetostudios.com/ :)

Facebook || Twitter || Youtube
B
36
S
7
G
5
Posts: 215
Reputation: 5,585

Post » Mon Jun 10, 2013 2:00 am

No problem Gon, :)

Looking forward to seeing what you create!
ImageImage
B
96
S
19
G
6
Posts: 1,054
Reputation: 11,457


Return to How do I....?

Who is online

Users browsing this forum: AllanR, Cryttexx, jhjconstruct and 7 guests