How do I declare a function that's callable from any event

Get help using Construct 2

Post » Sun Jun 28, 2015 11:14 am

Is there such a thing? (like an include thing for usual javascript)
B
4
Posts: 4
Reputation: 208

Post » Sun Jun 28, 2015 11:22 am

By adding the function object?
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sun Jun 28, 2015 5:49 pm

liviandi wrote:Is there such a thing? (like an include thing for usual javascript)


Just great a event sheet called 'functions' (or whatever) and insert all you functions there. Then make this event sheet global or insert it in each other event sheet where you want to use the functions.
Image Image iTunes: Match3 | Google Play: Match3
B
98
S
33
G
30
Posts: 1,117
Reputation: 27,791

Post » Mon Jun 29, 2015 2:07 am

oh, you can insert event sheets in another event sheet? cool hahaha. i didn't know that.
B
4
Posts: 4
Reputation: 208

Post » Mon Jun 29, 2015 2:10 am

https://www.scirra.com/manual/82/includes

whoops hahaa. should have read the manual more thoroughly.
B
4
Posts: 4
Reputation: 208

Post » Mon Jun 29, 2015 2:11 am

HAHAHA THERE'S EVEN A BUTTON FOR IT - I MUST HAVE BEEN BLIND. sorry guys.
B
4
Posts: 4
Reputation: 208


Return to How do I....?

Who is online

Users browsing this forum: Construct Monkey, David181, luckyrawatlucky and 2 guests