Can functions be shared across event sheets

Get help using Construct 2

Post » Thu Apr 30, 2015 12:36 pm

Basically, can I use a function in one event sheet that was created in another.

Event Sheet 1 has function "Move Enemy"
Event Sheet 2 call function "Move Enemy"

Thanks
B
9
S
3
Posts: 146
Reputation: 1,150

Post » Thu Apr 30, 2015 1:02 pm

Create an eventsheet called myfunctions.

Now on top of event sheet 1 and 2 include myfunctions

Now you can use "Move Enemy" on either.
You think you can do these things, but you can't, Nemo!
Just keep reading.
Just keep learning.
B
65
S
16
G
9
Posts: 1,429
Reputation: 12,718

Post » Thu Apr 30, 2015 1:35 pm

Does this save load time at all?

If I had say 50 functions but for one certain level 49 were not needed.

Are functions somehow cached.

Thanks
B
9
S
3
Posts: 146
Reputation: 1,150

Post » Thu Apr 30, 2015 1:48 pm

reads are instant. The functions will only be used if you call them or you set up some sort of trigger. Includes are standard, and recommended.
You think you can do these things, but you can't, Nemo!
Just keep reading.
Just keep learning.
B
65
S
16
G
9
Posts: 1,429
Reputation: 12,718

Post » Thu Apr 30, 2015 6:52 pm

Wicked

Thanks for your help
B
9
S
3
Posts: 146
Reputation: 1,150


Return to How do I....?

Who is online

Users browsing this forum: FabianB, Google [Bot], Lightstone, Yahoo [Bot] and 15 guests