Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Miss Animation

Anyone know how to make a custom Miss animation? I know you can change Sound Effects and flash effects but can you do more than that?
 
gratheo":1zbtfsl9 said:
No, sadly you can't.
I bet you could do this.... It looks like it would take a script though. Doesn't seem like something all that hard. You would have to create your miss animation first in the database. Then you would have to have someone write/edit a battle script that checks whether or not the move hits. if it hits then show this animation, if it misses then show a different animation. I don't know how to script (just basic edits) otherwise I would help you out. The script doesn't seem all that hard, just time consuming. I'll look into the standard battle scripts and see if i can make any edits that will help you out.
 
Can't you people come up with anything challenging? Just Kidding.

Code:
class RPG::Animation
  # animation_id => miss_animation
  Miss_Animations = {}
  def miss_animation
    return Miss_Animations[@id]
  end
end

class RPG::Sprite
  alias_method :seph_missanimations_rpgsprite_anim, :animation
  def animation(animation, hit)
    if hit == false && animation.miss_animation != nil
      animation(animation.miss_animation, true)
      return
    end
    seph_missanimations_rpgsprite_anim(animation, hit)
  end
end

Just edit this line: Miss_Animations = {}

So if animation 5 miss plays animation 6

Miss_Animations = {5=>6}

It will play the hit of your second animation (not the miss of your second animation).
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top