can you post screenshots
Cool Script!!
And Great work!
But,
I getting Error animation not found if I use Visible overworld encounter..
The script error if getting encounter poke outside grass tile..
Sorry for my bad english
1. You should retry copy my script
2. If there are still an error, give me what error (the list when you met it)
Why it's so laggy
I tested it's smooth.
When ever the graphic came it slow downs game and when graphic gone it's normal
if [email protected]? && @vp.rect.height>0
@animI.ox += 5
@animI.ox += 10
if @frs>5 && @frs%5==0
@vp.rect.height -= 0.25
@vp.rect.y += 1
end
@frs+=1
end
if [email protected]? && @vp.rect.height>0
@animI.ox += 5
@animI.ox += 10
@vp.rect.height -= 0.25
@vp.rect.y += 1
@frs+=1
end
Is there a way to make this work with v17.2?
class PokeBattle_Scene
class BattleIntroduction
def initialize(sprites,viewport,environment)
@sprites = sprites
@viewport = viewport
@name = nil
# Set name of the picture. It depend environment (in module PBEnvironment)
case environment
when 1; @name = "Grass"
when 2; @name = "Tall Grass"
when 3,4,5; @name = "Water"
when 6; @name = "Underwater"
when 7; @name = "Cave"
when 9; @name = "Desert"
end
end
def check?
return false if @name.nil?
return true
end
def create
@sprites = AnimatedPlane.new(@viewport)
filename = "Graphics/Pictures/Battle Introductions/#{@name} Animation"
@sprites.bitmap = Bitmap.new(filename)
return @sprites
end
end
end
# Move trainers/bases/etc. off-screen
oldx=[]
oldx[0]=@sprites["playerbase"].x; @sprites["playerbase"].x+=Graphics.width
oldx[1]=@sprites["player"].x; @sprites["player"].x+=Graphics.width
if @sprites["playerB"]
oldx[2]=@sprites["playerB"].x; @sprites["playerB"].x+=Graphics.width
end
@vp = Viewport.new(0,0,Graphics.width,288)
@vp.z = 99999
animIntro = BattleIntroduction.new(@sprites["Intro animation"],@vp,@battle.environment)
@animI = (animIntro.check?)? animIntro.create : nil
pbGraphicsUpdate
pbInputUpdate
pbFrameUpdate
break if tobreak
end
if [email protected]?
@animI.ox += 20
@vp.rect.height -= 6
@vp.rect.y += 6
end
If you dont want it, delete 'appearTime = 60' and change
intoCode:if [email protected]? && @vp.rect.height>0 @animI.ox += 5 @animI.ox += 10 if @frs>5 && @frs%5==0 @vp.rect.height -= 0.25 @vp.rect.y += 1 end @frs+=1 end
Code:if [email protected]? && @vp.rect.height>0 @animI.ox += 5 @animI.ox += 10 @vp.rect.height -= 0.25 @vp.rect.y += 1 @frs+=1 end
Above 'PokeBattle_Scene', add
Code:class PokeBattle_Scene class BattleIntroduction def initialize(sprites,viewport,environment) @sprites = sprites @viewport = viewport @name = nil # Set name of the picture. It depend environment (in module PBEnvironment) case environment when 1; @name = "Grass" when 2; @name = "Tall Grass" when 3,4,5; @name = "Water" when 6; @name = "Underwater" when 7; @name = "Cave" when 9; @name = "Desert" end end def check? return false if @name.nil? return true end def create @sprites = AnimatedPlane.new(@viewport) filename = "Graphics/Pictures/Battle Introductions/#{@name} Animation" @sprites.bitmap = Bitmap.new(filename) return @sprites end end end
In 'class PokeBattle_Scene', find 'def pbStartBattle(battle)', above
addCode:# Move trainers/bases/etc. off-screen oldx=[] oldx[0]=@sprites["playerbase"].x; @sprites["playerbase"].x+=Graphics.width oldx[1]=@sprites["player"].x; @sprites["player"].x+=Graphics.width if @sprites["playerB"] oldx[2]=@sprites["playerB"].x; @sprites["playerB"].x+=Graphics.width end
aboveCode:@vp = Viewport.new(0,0,Graphics.width,288) @vp.z = 99999 animIntro = BattleIntroduction.new(@sprites["Intro animation"],@vp,@battle.environment) @animI = (animIntro.check?)? animIntro.create : nil
addCode:pbGraphicsUpdate pbInputUpdate pbFrameUpdate break if tobreak end
Code:if [email protected]? @animI.ox += 20 @vp.rect.height -= 6 @vp.rect.y += 6 end
But it isn't good when you use it in PE v.18.1
Works fine, but there's still the old black bar during the transition that makes it look pretty messy
any way to remove it?
@viewport=Viewport.new(0,Graphics.height/2,Graphics.width,0)
@viewport.z=99999
@viewport=Viewport.new(0,0,Graphics.width,Graphics.height)
@viewport.z=99999
In 'def pbStartBattle(battle)', change
intoCode:@viewport=Viewport.new(0,Graphics.height/2,Graphics.width,0) @viewport.z=99999
Code:@viewport=Viewport.new(0,0,Graphics.width,Graphics.height) @viewport.z=99999
Beautiful work. This can be good with a 17.2 and EBS?
A hug and thanks!