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
28
S
11
G
20
Posts: 727
Reputation: 13,670

Post » Tue Feb 02, 2016 9:00 pm

Put it in another event sheet and include that sheet in the level event sheets.
B
89
S
30
G
95
Posts: 5,157
Reputation: 63,450

Post » Wed Feb 03, 2016 4:29 pm

Ok solved, thanks.
B
28
S
11
G
20
Posts: 727
Reputation: 13,670


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 6 guests