Swinging a sword in Xcode with Sprite Kit

Posted by jking14 on Game Development See other posts from Game Development or by jking14
Published on 2014-07-18T16:51:41Z Indexed on 2014/08/18 16:48 UTC
Read the original article Hit count: 397

I'm working on making an RPG in Xcode, and I'm having a major gameplay issue when it comes to having my character swing his sword in a way that is realistic and gameplay compatible.

Right now, when the player taps the screen and the sword is in one of the player's hand, it rotates the upright sword 90 degrees. The sword which is a parent of the player floats in front of the player because of a collision issue

I'm looking for any advice anyone can give on how to add a sword to the game and have it swing in a way that looks somewhat realistic and can damage enemies that are more than a single pixel away from the player

© Game Development or respective owner

Related posts about collision-detection

Related posts about ios