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
108
S
26
G
267
Posts: 4,456
Reputation: 149,747

Post » Sun Jan 17, 2016 1:49 pm

This is mandatory for using 9patch to draw a line with arrow! We need it.
Providence University, lecturer.

Tatung University, lecturer.



Consultant per question: USD$15 / time

Consultant by month: USD$300 / month

Customized project: USD$2500 / capx
B
78
S
16
G
4
Posts: 196
Reputation: 7,688

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
395
S
232
G
88
Posts: 24,367
Reputation: 193,744

Post » Sun Jan 17, 2016 2:19 pm

@Ashley

Thanks for explaining.
B
108
S
26
G
267
Posts: 4,456
Reputation: 149,747

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,903

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
395
S
232
G
88
Posts: 24,367
Reputation: 193,744

Post » Mon Feb 01, 2016 8:57 pm

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

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
51
S
25
G
107
Posts: 1,581
Reputation: 60,458

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.
Providence University, lecturer.

Tatung University, lecturer.



Consultant per question: USD$15 / time

Consultant by month: USD$300 / month

Customized project: USD$2500 / capx
B
78
S
16
G
4
Posts: 196
Reputation: 7,688


Return to Construct 2 General

Who is online

Users browsing this forum: CrudeMik and 3 guests