9 patch w/ behaviors?

Get help using Construct 2

Post » Sat Mar 02, 2013 8:39 am

I just discovered 9 patches and fell in love after I started implementing them into my physics game as objects, but quickly realized they don't really even do things like rotate or have real hitboxes.

Is there any possible way I can make a sprite or tiled background look the same way as a 9patch object?
B
10
S
3
G
3
Posts: 234
Reputation: 3,467

Post » Sat Mar 02, 2013 10:10 am

@Sushin Why not pin a transparent sprite to it and assign the behaviors to the transparent sprite, or if needed, do it the other way around...
B
49
S
11
G
10
Posts: 1,833
Reputation: 14,418

Post » Sat Mar 02, 2013 4:11 pm

How would I go about that exactly?
B
10
S
3
G
3
Posts: 234
Reputation: 3,467

Post » Sat Mar 02, 2013 4:24 pm

I actually almost have it working. Thanks for that tip.
http://puu.sh/2aQ4J
As you can see though, the 9-patch does not rotate, and I can't set rotation for it. Is there any work around?
B
10
S
3
G
3
Posts: 234
Reputation: 3,467

Post » Sat Mar 02, 2013 9:37 pm

I would accept a "no it's not possible." >_>
B
10
S
3
G
3
Posts: 234
Reputation: 3,467

Post » Sun Mar 03, 2013 2:04 am

No it's not possible.
I've tried rotating them xD they just don't render that way I guess, a limitation as for now.
B
36
S
10
G
6
Posts: 948
Reputation: 11,101

Post » Mon Sep 02, 2013 5:19 pm

@Sushin did you find any workarounds? thx
B
12
S
3
G
1
Posts: 347
Reputation: 2,866

Post » Mon Sep 02, 2013 5:39 pm

[QUOTE=ghost] @Sushin did you find any workarounds? thx[/QUOTE] Nope. The only solution is to not use 9 patch.
B
10
S
3
G
3
Posts: 234
Reputation: 3,467

Post » Mon Sep 02, 2013 6:06 pm

Could you put it on it's own layer, and rotate that?
B
200
S
51
G
30
Posts: 896
Reputation: 36,494

Post » Mon Sep 02, 2013 6:20 pm

[QUOTE=Paradox] Could you put it on it's own layer, and rotate that?[/QUOTE] No. They simply cannot rotate what-so-ever.
B
10
S
3
G
3
Posts: 234
Reputation: 3,467

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 15 guests