pf_texture with ImagePoint and Collision Polygon

For developers using the Construct 2 Javascript SDK

Post » Thu Feb 28, 2013 10:53 pm

Hello, I'm working on a plugin that displays an image with other things superimposed on it. In edittime.js, I use the flag pf_texture because I don't need sprite animations or want to have to deal with the complexities of a changing texture. When I call this.instance.EditTexture(); and get into the image editor, though, I cannot set ImagePoints or edit the Collision Polygon. I would like the user to be able to set at least one ImagePoint and to create their own Collision Polygon which outlines the image they are using.

Is there any way to enable this, or is my only option to use pf_animations instead and simply ignore all but the first frame of the first animation?

Posts: 26
Reputation: 577

Post » Fri Mar 01, 2013 2:44 pm

Sorry, it's not supported for now. Those features are pretty much Sprite specific for the time being.
Scirra Founder
Posts: 24,249
Reputation: 192,250

Post » Fri Mar 01, 2013 11:48 pm

Ok thanks, good to know. I find them super useful, so I may switch at some point to pf_animations and just refer to the first frame.
Posts: 26
Reputation: 577

Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 1 guest