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

This forum is currently in read-only mode.
  • 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:

    http://dl.dropbox.com/u/3317708/Shit.cap

    And here's the plugins I use if anyone has any trouble loading it:

    http://dl.dropbox.com/u/3317708/PLUGINS.zip

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

    Mik

  • Hmm..

    When player facing 0, set *Bones*'s angle to 0,

    Else,

    Set *Bones*'s angle 180.

    Hope this helps!

  • Hmm..

    When player facing 0, set *Bones*'s angle to 0,

    Else,

    Set *Bones*'s angle 180.

    Hope this helps!

    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.

  • Hmm.. I tried to run your cap and test it out, but All I saw was blackness and a few metal looking things

  • 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

  • Hmm.. I tried to run your cap and test it out, but All I saw was blackness and a few metal looking things

    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.

    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

    Not seen S's IK solver - will have a look, we are making the IK solution through Quazzie's tutorial

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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.

  • 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.

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

    <img src="http://www.crudepixel.com/images/stories/bone-hell.jpg">

    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

  • s's ik solver and linkmans is much simpler

    just choose two sprites and tell them where to solve to

  • 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!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)