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
169
S
50
G
173
Posts: 8,316
Reputation: 110,276

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 0 guests