r164 Expressions

For developers using the Construct 2 Javascript SDK

Post » Sat Mar 15, 2014 8:55 pm

Hi all,

r164 has broken the Leap Motion plugin I've been working on. This is from the release notes:

Third party plugin developers note: this could possibly break some plugins if you implement expressions which return different values every time they are called. For example we have specially taken in to account the system random() and choose() expressions since they still return different values every time and the same result can't be re-used for other instances. If you notice any problems please get in touch and we'll figure something out.


This is the example expression declaration:

Code: Select all
AddExpression(0, ef_deprecated, "Hand X position", "Hand",    "HandX",    "Get the primary hand X position.");


Construct 2 crashes on load as is. What's the best way to fix this?

Cheers
Moderator
B
72
S
14
G
11
Posts: 900
Reputation: 11,920

Post » Sat Mar 15, 2014 10:56 pm

I'm glad to see others using the Leap Motion, I've been thinking about seeing what I can do with the one I have. Sorry it's broke now.
B
25
S
10
G
3
Posts: 154
Reputation: 2,843


Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 0 guests