Fixed incorrect layering of sprites in battle, unfixed RMXP transitions

This commit is contained in:
Maruno17
2021-08-24 13:36:52 +01:00
parent e0e5cfebb7
commit 6551697b4f
2 changed files with 2 additions and 2 deletions

View File

@@ -160,7 +160,7 @@ class PokeBattle_Scene
trainer = pbAddSprite("player_#{idxTrainer+1}",spriteX,spriteY,trainerFile,@viewport)
return if !trainer.bitmap
# Alter position of sprite
trainer.z = 30+idxTrainer
trainer.z = 80+idxTrainer
if trainer.bitmap.width>trainer.bitmap.height*2
trainer.src_rect.x = 0
trainer.src_rect.width = trainer.bitmap.width/5

View File

@@ -88,8 +88,8 @@ def pbBattleAnimation(bgm=nil,battletype=0,foe=nil)
end
# Play main animation
Graphics.freeze
viewport.color = Color.new(0,0,0,255) # Ensure screen is black
Graphics.transition(Graphics.frame_rate*1.25,sprintf("Graphics/Transitions/%s",anim))
viewport.color = Color.new(0,0,0,255) # Ensure screen is black
# Slight pause after animation before starting up the battle scene
(Graphics.frame_rate/10).times do
Graphics.update