How do I create a local function that isn't visible elsewher

Get help using Construct 2

Post » Mon Apr 13, 2015 11:49 pm

How do I create a local function just like the local variables that aren't visible outside of that particular layout ?
B
12
S
3
Posts: 288
Reputation: 1,694

Post » Tue Apr 14, 2015 12:14 am

You can't.
ImageImageImage
B
71
S
21
G
220
Posts: 3,648
Reputation: 123,725

Post » Tue Apr 14, 2015 3:20 am

Ouch...
B
12
S
3
Posts: 288
Reputation: 1,694

Post » Tue Apr 14, 2015 4:47 am

Wouldn't it be enough to put the function on a event sheet that is only included in that one layout, but not the others?

If that doesn't work, you can put in a condition to the function "layoutname = "the name of your layout""
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
22
S
9
G
1
Posts: 787
Reputation: 3,786

Post » Tue Apr 14, 2015 5:45 am

Thanks :D
B
12
S
3
Posts: 288
Reputation: 1,694


Return to How do I....?

Who is online

Users browsing this forum: plinkie and 18 guests