FL
Pokémon Island Creator
- 2,548
- Posts
- 14
- Years
- Seen yesterday
PokéCommunity is breaking codes. For copying scripts at PokéCommunity: Click Thread Tools, and then Show Printable Version, and copy that instead.
This tutorial explains how to put a border option in the game, a little modified feature from Essentials V5 and before. With border and medium screen size (640x480), the fullscreen mode (Alt+Enter) become centered and smooth. You need a 640x480 border image with a 512x384 transparent hole in the center.
At SpriteResizer change
to
At PokemonOptions, after line 'attr_accessor :language' add line 'attr_accessor :border'. After line '@language = 0 # Language (see also LANGUAGES in script PokemonSystem)' add line '@border = 1' or '@border = 0' if you wish that the border is ON by default. Before line '# Quote this section out if you don't want to allow players to change the screen' add:
In both PokemonOptions and PokemonSystem change every
and (only in PokemonSystem )
to (total of 3)
This tutorial explains how to put a border option in the game, a little modified feature from Essentials V5 and before. With border and medium screen size (640x480), the fullscreen mode (Alt+Enter) become centered and smooth. You need a 640x480 border image with a 512x384 transparent hole in the center.
At SpriteResizer change
Code:
def pbSetResizeFactor(factor)
if $ResizeFactor!=factor
to
Code:
def pbSetResizeFactor(factor, force=false)
if force || $ResizeFactor!=factor
At PokemonOptions, after line 'attr_accessor :language' add line 'attr_accessor :border'. After line '@language = 0 # Language (see also LANGUAGES in script PokemonSystem)' add line '@border = 1' or '@border = 0' if you wish that the border is ON by default. Before line '# Quote this section out if you don't want to allow players to change the screen' add:
Code:
EnumOption.new(_INTL("Border"),[_INTL("On"),_INTL("Off")],
proc { $PokemonSystem.border },
proc {|value|
oldvalue=$PokemonSystem.border
$PokemonSystem.border=value
if value!=oldvalue
$ResizeOffsetX = ($PokemonSystem.border==0) ? 64 : 0
$ResizeOffsetY = ($PokemonSystem.border==0) ? 48 : 0
pbSetResizeFactor([0.5,1.0,2.0][$PokemonSystem.screensize],true)
ObjectSpace.each_object(TilemapLoader){|o| next if o.disposed?; o.updateClass }
end
}
),
In both PokemonOptions and PokemonSystem change every
Code:
$ResizeOffsetX=0
$ResizeOffsetY=0
and (only in PokemonSystem )
Code:
$ResizeOffsetX=0 #[0,0][$PokemonSystem.screensize]
$ResizeOffsetY=0 #[0,0][$PokemonSystem.screensize]
to (total of 3)
Code:
$ResizeOffsetX = ($PokemonSystem.border==0) ? 64 : 0
$ResizeOffsetY = ($PokemonSystem.border==0) ? 48 : 0
Attachments
Last edited: