lordpsycho
Member
Hi, I have a script for an Animated lateral battle system, its from the PR_Coders team.
The fact is that it works fine, but when I try to use a skill with an animation that has more than 40 frames (like a summon), it wont accept the command "wait_for_animation", and it will continue the battle even if the animation hasn't finished.
The problem is on line 1040 from the PR_CBS script:
it calls the "display_animation" procedure from the Scene_Battle script (line 918)
The line 925 "wait_for_animation" calls the line 77 from the same script
So its supposed to wait for the animation to finish before doing something else.
It works fine with the default battle system, but not with this
Here's the demo:
http://galeon.com/wariopsycho/PRCBS.zip
I hope u can help me here, thanks.
The fact is that it works fine, but when I try to use a skill with an animation that has more than 40 frames (like a summon), it wont accept the command "wait_for_animation", and it will continue the battle even if the animation hasn't finished.
The problem is on line 1040 from the PR_CBS script:
Code:
1040 display_animation([target], skill.animation_id)
1041 wait(5)
1042 display_action_effects(target, skill)
1043 wait(10)
Code:
918 def display_animation(targets, animation_id)
919 if animation_id < 0
920 display_attack_animation(targets)
921 else
922 display_normal_animation(targets, animation_id)
923 end
924 wait(20)
925 wait_for_animation
926 end
Code:
77 def wait_for_animation
78 while @spriteset.animation?
79 update_basic
80 end
81 end
It works fine with the default battle system, but not with this
Here's the demo:
http://galeon.com/wariopsycho/PRCBS.zip
I hope u can help me here, thanks.