To make the dash/ teleport part you'd have to create events with a few conditions and attach the teleporting/dashing actions..
The most important questions would be:
When should the teleporting/dashing take place?
When would it be impossible to dash/teleport?
When should the teleporting/dashing stop?
If you want a special animation to play, you should set it in an action.
You could either change the speed of the 8-direction behaviour or for example change the player to bullet behaviour during the dashing..