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.

[VX]PR_CODERS CBS script problem

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:
Code:
		  1040	display_animation([target], skill.animation_id)
		  1041	wait(5)	 
		  1042	display_action_effects(target, skill)
		  1043	wait(10)
it calls the "display_animation" procedure from the Scene_Battle script (line 918)
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
The line 925 "wait_for_animation" calls the line 77 from the same script
Code:
		 77   def wait_for_animation
		 78	 while @spriteset.animation?
		 79	 update_basic
		 80	 end
		 81   end
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.
 

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