Pass an expression to an action

For developers using the Construct 2 Javascript SDK

Post » Sat May 03, 2014 12:12 pm

How do I pass an expression of one plugin to an action of a different plugin in an event?

In a certain event I'm trying to set the text in a Text box plugin to an expression of a plugin I made myself. It looks like I can only insert actual text there.

My aim is to be able to pass to plugins dynamic expressions at runtime rather than constant values.
B
5
S
1
Posts: 28
Reputation: 431

Post » Sat May 03, 2014 12:34 pm

str(myplug.return)
Image ImageImage
B
168
S
50
G
163
Posts: 8,224
Reputation: 105,067

Post » Sat May 03, 2014 1:28 pm

thanks
B
5
S
1
Posts: 28
Reputation: 431


Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 1 guest