Use other plugins triggers

For developers using the Construct 2 Javascript SDK

Post » Sun Jan 22, 2017 8:12 pm

Hi,
I'm making a behavior and I would like to use the triggers of the Touch plugin (like you would normally use them in an event sheet) inside my behavior like this:
pseudo code inside my behavior:
Code: Select all
touchPlugin.OnTouchObject(
myObjectType,
callback(){
//My object was touched
}
)


Is there a way to achieve this ?
Thanks
B
21
S
10
G
3
Posts: 50
Reputation: 3,269

Post » Mon Jan 23, 2017 12:29 am

@AekiroStudio

It is impossible, imo.
My solution is made my touch plugin for registering callback of other plugins/behaviors.
B
109
S
27
G
277
Posts: 4,482
Reputation: 154,924


Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 0 guests