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
21
Posts: 801
Reputation: 14,453

Post » Tue Feb 02, 2016 9:00 pm

Put it in another event sheet and include that sheet in the level event sheets.
B
92
S
32
G
109
Posts: 5,290
Reputation: 70,991

Post » Wed Feb 03, 2016 4:29 pm

Ok solved, thanks.
B
29
S
12
G
21
Posts: 801
Reputation: 14,453


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 10 guests