12-08-2013, 08:41 PM
Let's see if we can teach you! The method we want to edit is
let's add our picture hiding code after the "if $game_system.fple" so it only works on FP dungeon maps. The code we are going to use is This says " over 1 frame (instantly), keep everything the same but change the picture's opacity to 0." Then we tell the game to update the picture so it will run our changes.
Now once a battle starts, the gun will be invisible! Let's see if we can restore it after battle. look at Without looking at the original Scene_Battle main, we can guess that once the @spriteset_map is disposed, it is no longer needed. Therefore, battle is probably over. So let's add after it, which is the same code as we used to hide it, but with 0 replaced with 255.
And that should do it! if you still can't figure out I can help more, but it is my belief that you should learn how to make such small edits on your own so you have better control of you game.
Code:
def call_battle
if $game_system.fple
@spriteset.update
Graphics.update
end
call_battle_fple_scene_map
end
let's add our picture hiding code after the "if $game_system.fple" so it only works on FP dungeon maps. The code we are going to use is
Code:
$game_screen.pictures[1].move(1, $game_screen.pictures[1].origin,
$game_screen.pictures[1].x, $game_screen.pictures[1].y,
$game_screen.pictures[1].zoom_x, $game_screen.pictures[1].zoom_y,
0, $game_screen.pictures[1].blend_type)
$game_screen.pictures[1].update
Now once a battle starts, the gun will be invisible! Let's see if we can restore it after battle. look at
Code:
def main
if $game_system.fple
@spriteset_map = FPLE_Spriteset_Map.new
else
@spriteset_map = Spriteset_Map.new
end
main_fple_scene_map
@spriteset_map.dispose
end
Code:
$game_screen.pictures[1].move(1, $game_screen.pictures[1].origin,
$game_screen.pictures[1].x, $game_screen.pictures[1].y,
$game_screen.pictures[1].zoom_x, $game_screen.pictures[1].zoom_y,
255, $game_screen.pictures[1].blend_type)
$game_screen.pictures[1].update
And that should do it! if you still can't figure out I can help more, but it is my belief that you should learn how to make such small edits on your own so you have better control of you game.