- 24
- Posts
- 7
- Years
- Seen Jan 28, 2025
Hello, I have a problem with the script to store the moves animations (from Reborn) in the cache (u can see the post here: ).
The problem is that by adding this script :
The game will store in cache the moves animations. This is good as it will eliminate the seconds of delay when using a move. So far so good, but after finishing a battle, the game goes from looking like this:
to looking like this:
As you can see, the game lowers its performance and the character seems to make small frame jumps. The game will also randomly crash.
Thank you for the help!
The problem is that by adding this script :
Spoiler:
Code:
#Animations Cache
class PokemonTemp
attr_accessor :cachePkmnAnims
end
def pbLoadCachedAnimations
$PokemonTemp=PokemonTemp.new if !$PokemonTemp
if !$PokemonTemp.cachePkmnAnims
$PokemonTemp.cachePkmnAnims=load_data("Data/PkmnAnimations.rxdata")
end
return $PokemonTemp.cachePkmnAnims
end
#Moves2Anim Cache
class PokemonTemp
attr_accessor :cachePkmnAnims2
end
def pbLoadCachedAnimations2
$PokemonTemp=PokemonTemp.new if !$PokemonTemp
if !$PokemonTemp.cachePkmnAnims2
$PokemonTemp.cachePkmnAnims2=load_data("Data/move2anim.dat")
end
return $PokemonTemp.cachePkmnAnims2
end
The game will store in cache the moves animations. This is good as it will eliminate the seconds of delay when using a move. So far so good, but after finishing a battle, the game goes from looking like this:
Spoiler:
![[PokeCommunity.com] Problem with cache moves animations [PokeCommunity.com] Problem with cache moves animations](https://i.gyazo.com/ff8a708983c3a7819b999e6b45b19bd8.gif)
to looking like this:
Spoiler:
![[PokeCommunity.com] Problem with cache moves animations [PokeCommunity.com] Problem with cache moves animations](https://i.gyazo.com/a80c3d6d5fa0175d82bc5bb90ae191ef.gif)
As you can see, the game lowers its performance and the character seems to make small frame jumps. The game will also randomly crash.
Thank you for the help!