GameSalad

Best way to do sword swing

What would be the best way of achieving a sword swing? Would you have a sword actor and animate it separately, or simply have the player animated with an invisible sword actor? I'm basically trying to make a sword swing down and reset once the swing is over...any advice/help would be greatly appreciated. Thanks in advance!

Comments

  • Triangularity+GamesTriangularity Games Posts: 123Member, PRO

    Found somewhat of a solution. "Rotate to angle" makes a swing effect, and using "move to" to line it up with where the player would be swinging has a somewhat useful swing effect

  • Triangularity+GamesTriangularity Games Posts: 123Member, PRO

    Even better way is to simply "rotate to angle" quickly, and then change the center of mass on the sword to near the handle end (a few pixels about where the handle would be) and the effect is perfect

  • IceboxIcebox Posts: 1,434Member, PRO

    The simplest way and the better way is to do it with animation and spawning an invisible actor

  • ToqueToque Posts: 994Member, PRO

    @Icebox said:
    The simplest way and the better way is to do it with animation and spawning an invisible actor

    Yes. That's the typical way to do it. Also animate for running, jumping, die.......

  • The_Gamesalad_GuruThe_Gamesalad_Guru Posts: 9,895Member

    Try my custom collision shape animations. You can select just the sword as your collision shape. See the videos on my youtube.

Sign In or Register to comment.