Frame Stop (Bug Fix)

Frame Stop (Bug Fix) by FelipeFalcon

Introduction


Certainly a lot of people must have noticed and not given much importance. (With small chars not make much difference, but it occurs)

This "little mistake" always occurs when you are walking, and collides with something. Not quite a mistake, but even stopped the char continues brightening until you reach the original frame (not busy).

With this script you can take it, I do not know if've probably somewhere or made sure to look but solve.

Sorry for my English. I am using a translator.


 

 

no-script:
kadUI28.gif
 script:
MtA2n9S.gif


 

 

How to use:

Place above "Main".

 

Demo:

Not required.

 

Script:


Code:
#______________________________________________________________________________#
#_ *Bug fix _ Frame Stop v1.3 _ by FelipeFalcon _______________________________#
#______________________________________________________________________________#
class Game_CharacterBase
alias update_stop_fix update_stop
def update_stop
update_stop_fix
if !passable?(@x, @y, @direction)
@pattern = @original_pattern if @step_anime == false and !moving? unless @move_route_forcing
end
end
end
Nice, but I wouldn't put references to $game_player into Game_CharacterBase.


What if it's an event that's moving around? You don't want an event's update_stop to change depending on whether the player can move onto the next tile.

if !passable?(@x, @y, @direction)
Bad translator! I think "brightening" should be "animating" 🙂
Nice, but I wouldn't put references to $game_player into Game_CharacterBase.

What if it's an event that's moving around? You don't want an event's update_stop to change depending on whether the player can move onto the next tile.

if !passable?(@x, @y, @direction)Bad translator! I think "brightening" should be "animating" 🙂
I've changed. XD

Worst I had tried to use @x, @y but for some reason the @direction was not.

I was trying to @d         🙁

Thanks for the suggestion.

Warning: The stop can be a little "hard" if the speed of char frames is edited.
If I use "Graphics.frame_rate = 120",
FPS is around 110 before using #1 Script.
After using it, FPS drop to around 100

Press arrow key when face a wall, it even drop a half to FPS60

Original thread: https://forums.rpgmakerweb.com/threads/frame-stop-bug-fix.40019/