Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class TrainerIntroAnimation < PokeBattle_Animation
- def initialize(sprites,viewport,battle)
- @battle=battle
- super(sprites,viewport)
- end
- def createProcesses
- @battle.opponent.each_with_index do |p,i|
- # rinse and repeat with each new trainer. Feel free to adjust the PictureEx animation
- if isConst?(p.trainertype,PBTrainers,:RIVAL_SILVER)
- trpic = addSprite(@sprites["trainer_#{i+1}"],PictureOrigin::Bottom)
- trpic.setName(10,"Graphics/Trainers/secondframe")
- trpic.setName(15,"Graphics/Trainers/thirdframe")
- end
- end
- end
- end
- # place under comment pointing out where trainer animations should go in def pbBattleIntroAnimation
- @animations.push(TrainerIntroAnimation.new(@sprites,@viewport,@battle))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement