Jump to content

Need help adding animation to custom move


Roacher

Recommended Posts

I have created several custom moves but I haven't been able to figure out how to assign an animation to them. All I know is that it has something to with the animation editor in debug mode. I'm just trying to copy an already existing animation and use it rather than make a new one from scratch

Link to comment
Share on other sites

Well, I figured out how to add the move into the "List of animations", but it still doesn't appear. The move is called DRACONICSLASH and I named it Move:DRACONICSLASH in the animation editor.

 

When using the move this message shows up in the console but I don't know what any of this means

Exception `KeyError' at Rejuv/BattleScene_Rejuv:1567 - key not found: :DRACONICSLASH

 

  def pbFindAnimation(move,userIndex,hitnum)
    begin
      noflip=false
      if (userIndex&1)==0   # On player's side
        anim=$cache.move2anim[0].fetch(move.intern) <----- This is line 1567
      else                  # On opposing side
        anim=$cache.move2anim[1].fetch(move.intern) if $cache.move2anim[1].key?(move.intern)
        noflip=true if anim
        anim=$cache.move2anim[0].fetch(move.intern) if !anim
      end
      return [anim+hitnum,noflip] if move == (:BONEMERANG || :THUNDERRAID)
      return [anim,noflip] if anim
      anim=$cache.move2anim[0].fetch(:TACKLE)
        return [anim,false] if anim
    rescue
      return nil
    end
    return nil
  end
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...