Calling a different plugin ACEs

For developers using the Construct 2 Javascript SDK

Post » Thu May 28, 2015 6:24 pm

Hey All,

I am trying to get a behavior to access another objects plugin aces but I am having trouble getting it to work.

Specifically, I want a behavior on an sprite to access a tilemap objects expressions. I figured all I needed to do was pass the tilemap object via a parameter in an action and then call the required tilemap expresion via:

this.testing = cr.plugins_.Tilemap.prototype.Exps.PositionToTileX.call ( tilemap, zX);

But I get an error about can't read property of PositionToTileX of undefined...
Image
B
33
S
11
G
2
Posts: 564
Reputation: 5,153

Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 0 guests