FPLE : First Person Labyrinth Explorer
#56
Let's see if we can teach you! The method we want to edit is
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
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
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
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
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
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.
Reply }


Messages In This Thread
FPLE : First Person Labyrinth Explorer - by MGC - 03-28-2010, 01:13 PM
RE: FPLE : First Person Labyrinth Explorer - by MechanicalPen - 12-08-2013, 08:41 PM
FPLE : First Person Labyrinth Explorer - by Ace - 03-28-2010, 01:41 PM
FPLE : First Person Labyrinth Explorer - by Bolt - 03-29-2010, 04:43 AM
FPLE : First Person Labyrinth Explorer - by MGC - 03-29-2010, 09:39 AM
FPLE : First Person Labyrinth Explorer - by MGC - 03-30-2010, 07:09 AM
FPLE : First Person Labyrinth Explorer - by MGC - 03-31-2010, 06:56 AM
FPLE : First Person Labyrinth Explorer - by Boot - 03-31-2010, 07:36 PM
FPLE : First Person Labyrinth Explorer - by MGC - 04-03-2010, 08:48 AM
FPLE : First Person Labyrinth Explorer - by PK8 - 04-04-2010, 02:36 AM
FPLE : First Person Labyrinth Explorer - by EJlol - 04-04-2010, 10:28 AM
FPLE : First Person Labyrinth Explorer - by Ace - 04-04-2010, 11:32 AM
FPLE : First Person Labyrinth Explorer - by PK8 - 04-05-2010, 01:40 AM
FPLE : First Person Labyrinth Explorer - by MGC - 04-05-2010, 02:16 PM
FPLE : First Person Labyrinth Explorer - by MGC - 04-07-2010, 06:57 AM
FPLE : First Person Labyrinth Explorer - by Boot - 04-07-2010, 05:58 PM
FPLE : First Person Labyrinth Explorer - by MGC - 04-07-2010, 08:07 PM
FPLE : First Person Labyrinth Explorer - by Xaiko - 04-09-2010, 05:10 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
   FPLE Camera Height DerVVulfman 23 33,186 07-20-2020, 01:41 AM
Last Post: rzrcoon
   [WIP] FPLE 2 MGC 17 42,702 01-08-2018, 04:06 AM
Last Post: Darkantuan
   L's Simple Main Menu #3 - 1-person Landarma 1 7,727 10-14-2010, 04:25 AM
Last Post: Landarma
   1-Person DBS Raziel 0 6,209 03-07-2008, 04:41 AM
Last Post: Raziel



Users browsing this thread: 15 Guest(s)