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
31
S
13
G
21
Posts: 844
Reputation: 14,695

Post » Tue Feb 02, 2016 9:00 pm

Put it in another event sheet and include that sheet in the level event sheets.
B
94
S
33
G
118
Posts: 5,396
Reputation: 75,853

Post » Wed Feb 03, 2016 4:29 pm

Ok solved, thanks.
B
31
S
13
G
21
Posts: 844
Reputation: 14,695


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 14 guests