Request: add angle/rotate-able in 9patch object

Discussion and feedback on Construct 2

Post » Sun Jan 17, 2016 1:43 pm

@Ashley

9 patch object could not rotate or set angle. How about add rotate-able feature in this kind of object?
B
107
S
25
G
224
Posts: 4,322
Reputation: 127,821

Post » Sun Jan 17, 2016 1:49 pm

This is mandatory for using 9patch to draw a line with arrow! We need it.
B
70
S
15
G
4
Posts: 187
Reputation: 7,295

Post » Sun Jan 17, 2016 2:08 pm

I think it would be easy in WebGL mode, but extremely difficult in canvas2d mode, because the way tiling transforms work is completely ridiculous in canvas2d. IIRC that's the main reason it's not supported!

In the long-term we aim to drop support for the canvas2d renderer and use WebGL exclusively, so we could revisit it at that time.
Scirra Founder
B
378
S
219
G
84
Posts: 23,854
Reputation: 187,841

Post » Sun Jan 17, 2016 2:19 pm

@Ashley

Thanks for explaining.
B
107
S
25
G
224
Posts: 4,322
Reputation: 127,821

Post » Mon Jan 18, 2016 1:24 pm

Ashley wrote:I think it would be easy in WebGL mode, but extremely difficult in canvas2d mode, because the way tiling transforms work is completely ridiculous in canvas2d. IIRC that's the main reason it's not supported!

In the long-term we aim to drop support for the canvas2d renderer and use WebGL exclusively, so we could revisit it at that time.


Long term meaning "construct 3" or "in 5 years or more"?

I'd love some rotatable 9-patch to do things like lasers, (as mentioned above) arrows and map editors.
B
36
S
8
G
8
Posts: 532
Reputation: 6,898

Post » Mon Jan 18, 2016 2:16 pm

Basically when WebGL support levels reach almost-universal, which means old browsers falling out of use (notably IE9-10 and old Android browsers) and GPU driver quality generally being good enough that blacklisting isn't such a significant problem. WebGLstats.com is a good place to keep an eye on this although it hasn't been updated for a while. According to it's last data, something like 20% of Android phones and more like 45% of Android tablets still don't have WebGL support, and even 7-8% of Windows desktops still don't have WebGL support. I think for a lot of people that's still too many - I'd want it to be more like 98% on desktop and 90% on mobile, but it could depend on a few other factors.
Scirra Founder
B
378
S
219
G
84
Posts: 23,854
Reputation: 187,841

Post » Mon Feb 01, 2016 8:57 pm

+1
rotate 9-patch please
Image
Image
Image
B
15
S
2
Posts: 48
Reputation: 1,595

Post » Tue Feb 02, 2016 3:22 am

jomo wrote:This is mandatory for using 9patch to draw a line with arrow! We need it.


There are other ways around this... maybe something like pining a regtangle that you can stretch to an arrow tip.

Rotatable 9-patch would be pretty nice though!
Mistakes were made.
B
47
S
23
G
98
Posts: 1,479
Reputation: 55,447

Post » Sun Feb 07, 2016 5:41 am

oosyrag wrote:
jomo wrote:This is mandatory for using 9patch to draw a line with arrow! We need it.


There are other ways around this... maybe something like pining a regtangle that you can stretch to an arrow tip.

Rotatable 9-patch would be pretty nice though!


Yeah~ I think @rexrainbow <pin to image point> plugin can be a work around in this case.
B
70
S
15
G
4
Posts: 187
Reputation: 7,295


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 7 guests