Scope of functions

Discussion and feedback on Construct 2

Post » Tue Feb 02, 2016 8:29 pm

Hello, about functions, I have two layouts, in the second layout I have declared a function.

I run the first layout and called from there to the function, does not work.

How to make a global function?.
A function that can be called from any layout.

https://dl.dropboxusercontent.com/u/60803633/testFunction.capx
B
29
S
12
G
20
Posts: 755
Reputation: 13,853

Post » Tue Feb 02, 2016 9:00 pm

Put it in another event sheet and include that sheet in the level event sheets.
B
91
S
31
G
102
Posts: 5,232
Reputation: 67,250

Post » Wed Feb 03, 2016 4:29 pm

Ok solved, thanks.
B
29
S
12
G
20
Posts: 755
Reputation: 13,853


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 2 guests