The RPG Maker Resource Kit

RMRK RPG Maker Creation => Requests => Script Request => Topic started by: KDashFate on July 02, 2010, 08:34:18 AM

Title: Battle Animation Speed
Post by: KDashFate on July 02, 2010, 08:34:18 AM
Hi! I'm not trying to be a leech since I don't normally post here, but I couldn't find an answer at RPG Maker VX.net which is a great community, but I've looked on google and found this site, I searched hbgames and they didn't have it. I'm not even sure if I need a script but if I can just edit the default scripts.

Anyways, the Battle Animations are too slow to me, and I want to know if you can change the frames per second it plays them. I was looking at the script database here and saw one for the animated tiles, but can it be done for the battle animations? I'm starting to think it's not possible.
Title: Re: Battle Animation Speed
Post by: modern algebra on July 02, 2010, 01:52:55 PM
Well, it's possible, but the animations are already at 15fps..
In any case, go to line 56 of Sprite_Base and change:

Code: [Select]
    @animation_duration = @animation.frame_max * 4 + 1

Change the 4 to 2, so:

Code: [Select]
    @animation_duration = @animation.frame_max * 2 + 1

Then go to line 36 and change:

Code: [Select]
      if @animation_duration % 4 == 0

change the 4 to 2 there as well, so:

Code: [Select]
      if @animation_duration % 2 == 0

That would change animation speed to 30 FPS.
Title: Re: Battle Animation Speed
Post by: KDashFate on July 02, 2010, 06:33:19 PM
Thank you!! I also had to go to line 142 and change that 4 to a 2 but it works now great!

If I can I'll contribute to rmrk