IK Trouble, arm's are flipping upside down. :) *SOLVED

For questions about using Classic.

Post » Wed Jul 07, 2010 11:10 pm

Hi guys - if anyone could lend a hand with this issue I'm having with my character - I've got a guy running with bone movement but the 'behind' arm is using IK so that the arm is connected to the characters gun at all times.

Problem is, when you aim left, the guy faces left but the arms just flip out.

Here's a cap I made with just the character in it:
[url:1hg39vq5]http://dl.dropbox.com/u/3317708/Shit.cap[/url:1hg39vq5]

And here's the plugins I use if anyone has any trouble loading it:
[url:1hg39vq5]http://dl.dropbox.com/u/3317708/PLUGINS.zip[/url:1hg39vq5]

Deepest thanks to anyone who has any advice on the issue.

Mik
B
39
S
12
G
8
Posts: 580
Reputation: 7,108

Post » Wed Jul 07, 2010 11:33 pm

Hmm..

When player facing 0, set *Bones*'s angle to 0,
Else,
Set *Bones*'s angle 180.


Hope this helps!
B
2
S
2
G
3
Posts: 140
Reputation: 1,530

Post » Thu Jul 08, 2010 12:39 am

[quote="xxKitheifxx":qhuadz1t]Hmm..

When player facing 0, set *Bones*'s angle to 0,
Else,
Set *Bones*'s angle 180.


Hope this helps![/quote:qhuadz1t]

Thanks, but the bones are fine - they mirror and flip correctly it's just the IK 'arm' made up of two sprites which do not.
B
39
S
12
G
8
Posts: 580
Reputation: 7,108

Post » Thu Jul 08, 2010 12:43 am

Hmm.. I tried to run your cap and test it out, but All I saw was blackness and a few metal looking things :P
B
2
S
2
G
3
Posts: 140
Reputation: 1,530

Post » Thu Jul 08, 2010 8:02 am

are you using "s"'s ik solver or linkman's standalone ik solver?

either way, when facing to the left you'd have to change the direction of the bend
in 's' that would be change it from solving left to solving right

don't remember how it's done in linkman's
Spriter Dev
B
88
S
21
G
12
Posts: 3,240
Reputation: 16,486

Post » Thu Jul 08, 2010 9:01 am

[quote="xxKitheifxx":20clczb9]Hmm.. I tried to run your cap and test it out, but All I saw was blackness and a few metal looking things :P[/quote:20clczb9]

That's odd - is fine on my screen, a character in a darkened room - I just updated the .cap and got rid of the lights so should be fine now.
[quote="lucid":20clczb9]are you using "s"'s ik solver or linkman's standalone ik solver?

either way, when facing to the left you'd have to change the direction of the bend
in 's' that would be change it from solving left to solving right

don't remember how it's done in linkman's[/quote:20clczb9]

Not seen S's IK solver - will have a look, we are making the IK solution through Quazzie's tutorial
B
39
S
12
G
8
Posts: 580
Reputation: 7,108

Post » Thu Jul 08, 2010 6:48 pm

set the height of the sprites to a negative number at the time when they're messing up, and back to a positive when they're in the "non-messed up orientation", it'll flip the arms vertically, fixing the problem i suspect. didn't try it since i cant open your cap for wtv reason, but see if it works.
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Thu Jul 08, 2010 7:38 pm

[quote="QuaziGNRLnose":133g1hen]set the height of the sprites to a negative number at the time when they're messing up, and back to a positive when they're in the "non-messed up orientation", it'll flip the arms vertically, fixing the problem i suspect. didn't try it since i cant open your cap for wtv reason, but see if it works.[/quote:133g1hen]

I'm not sure that's the problem, here's an image of what's happening:


So when facing right the two arm sprites are bending correctly, facing left they bend out the other way, the images are also flipped but your solution fixes that.

lol, the game looks better than that drawing :)
B
39
S
12
G
8
Posts: 580
Reputation: 7,108

Post » Thu Jul 08, 2010 9:19 pm

s's ik solver and linkmans is much simpler
just choose two sprites and tell them where to solve to
Spriter Dev
B
88
S
21
G
12
Posts: 3,240
Reputation: 16,486

Post » Thu Jul 08, 2010 10:38 pm

Linkmans IK solver saved the day it was about having two events, when he's looking left he has an Outward bend, and we mirror the sprites - and when he's looking right his bend is inward.

An inward bender...sorry.

YAY!
B
39
S
12
G
8
Posts: 580
Reputation: 7,108

Next

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 0 guests