Author Topic: Dashing (SOLVED)  (Read 1888 times)

MitchellVirgil

  • Newbie
  • *
  • Posts: 5
  • Sah Doods!
    • View Profile
Dashing (SOLVED)
« on: December 12, 2016, 12:04:05 am »
Hey guys! So I've been attempting to create a dash move like this http://i.imgur.com/IumzFQj.gif but haven't gotten close so far. Any tips for achieving this? Thanks!
« Last Edit: December 12, 2016, 06:12:20 am by MitchellVirgil »

Diarandor

  • Hero Member
  • *****
  • Posts: 1061
  • Cats are cool! (ΦωΦ)
    • View Profile
Re: Dashing
« Reply #1 on: December 12, 2016, 12:19:44 am »
If you mean about the code, it should be relatively easy. I would do something like this (but I will not make the code for you, I have no time): First freeze the hero (you could make him invincible or not during the dash if you want), set the correct animation, create a movement (with the correct direction, speed and max distance), when the movement ends just unfreeze the hero, and that should be all (or almost all). You will need to code the sword too, which is quite a bit of work. Just check the Lua API for more info about the functions.

The most annoying part is to draw your custom dash animation and the sword animations, but that is a different thing.
“If you make people think they're thinking, they'll love you. But if you really make them think, they'll hate you.”

MitchellVirgil

  • Newbie
  • *
  • Posts: 5
  • Sah Doods!
    • View Profile
Re: Dashing
« Reply #2 on: December 12, 2016, 06:11:42 am »
Thanks!