질문과 답변

Extra Form

메모리아 님께서 만드신 맵.

출처 : http://avangs.info/320459

포맷변환_하늘섬.jpg

 

 부초님께서 만드신 맵

출처 : http://avangs.info/320677

 

1234.JPG

 

두개다 XP로 만드신건데요

화면위에 뿌연 효과

구름? 연기? 이러한 효과 VX로도 스크립트가 있나요?

 

  

Comment '2'
  • profile
    마에르드 2012.02.16 02:09

    # Allows you to display a fog on map. Brings back the "old" Fog feature from
    # RPG Maker XP.
    # 08-03-2008 (dd-mm-yyyy) ⓒ Hevendor of rmxp.org
    # 09-03-2008 Edits/additions by Jirbytaylor
    # 09-03-2008 (dd-mm-yyyy) Edited by Hevendor
    # Version 1.2.3
    # Latest update: fixed bug where fog showed over pictures
    #==============================================================================

    module Fog_Map_Settings
      #============================================================================
      # * Configure Fog numbers -> names for setup timesaving. Format:
      # {fognumber => 'fogname.extension', ...}
      # where 'Fogname.extension' must be the name of a fog picture and its extension
      # located in the pictures folder
      #============================================================================
      Fog_names = {1 => '001-Fog01.png', 2 => '002-Clouds01.png', 3 => '003-Shade01.png', 4 => '004-Shade02.png', 5 => '005-Sandstorm01.png', 6 => '006-Sandstorm02.png'}
      #============================================================================
      # * Set maps you wish to have fogs here. Format:
      # Fog_maps = {mapID => Fog number, mapID2 => Fog number, ...}
      #============================================================================
      Fog_maps = {1 => 2, 2 => 3, 9=>2, 10=>2, 11=>1, 23=>3, 24=>5,
      32=>1, 33=>1, 30=>2, 37=>2, 38=>2}
      #============================================================================
      # * Set up fog settings. Uses (fog number => setting, ...) format
      # - Opacity - Opacity of fog, ranging from 0 (invisible) to 255 (opaque)
      # - Zoom - size of fog. '1' is normal not '100'.
      # - Blend - 0 - Normal, 1 - Add, 2 - Subtract
      # - SxSy - Scroll settings. (fog number => [sx,sy] ...)
      #============================================================================
      Fog_opacity = {1 => 100, 2 => 100, 3 => 100, 4 => 100, 5 => 100, 6 => 100}
      Fog_zoom = {1 => 3, 2 => 2, 3 => 2, 4 => 3, 5 => 3, 6 => 3}
      Fog_blend = {1 => 2, 2 => 0, 3 => 0, 4 => 2, 5 => 2, 6 => 2}
      Fog_sxsy = {1 => [4, 4], 2 => [4, 4], 3 => [4, 4], 4 => [4, 4], 5 => [4, 4], 6 => [4, 4]}
    end

    class Game_Map
      #--------------------------------------------------------------------------
      # * Public Instance Variables
      #--------------------------------------------------------------------------
      attr_reader :map_id                     # map ID
      attr_reader :fog_ox                     # fog oX
      attr_reader :fog_oy                     # fog oY
      #--------------------------------------------------------------------------
      # * Alias Definitions
      #--------------------------------------------------------------------------
      alias hev_fog_feature_map_update update
      alias hev_fog_feature_map_initialize initialize
      #--------------------------------------------------------------------------
      # * Object Initialization
      #--------------------------------------------------------------------------
      def initialize
        @fog_ox = 0
        @fog_oy = 0
        hev_fog_feature_map_initialize
      end
      #--------------------------------------------------------------------------
      # * Update Fog
      #--------------------------------------------------------------------------  
      def update_fog
        if Fog_Map_Settings::Fog_maps.include?($game_map.map_id)
          @fog_ox -= Fog_Map_Settings::Fog_sxsy[Fog_Map_Settings::Fog_maps[@map_id]][0] / 8.0
          @fog_oy -= Fog_Map_Settings::Fog_sxsy[Fog_Map_Settings::Fog_maps[@map_id]][1] / 8.0
        end
      end
      #--------------------------------------------------------------------------
      # * Frame Update
      #--------------------------------------------------------------------------
      def update
        hev_fog_feature_map_update
        update_fog
      end
    end

    class Spriteset_Map
      #--------------------------------------------------------------------------
      # * Alias Definitions
      #--------------------------------------------------------------------------
      alias hev_fog_feature_initialize initialize
      alias hev_fog_feature_create_viewports create_viewports
      alias hev_fog_feature_dispose dispose
      alias hev_fog_feature_update_viewports update_viewports
      alias hev_fog_feature_update update
      #--------------------------------------------------------------------------
      # * Object Initialization
      #--------------------------------------------------------------------------
      def initialize
        hev_fog_feature_initialize
        create_fog
      end
      #--------------------------------------------------------------------------
      # * Create Viewport
      #--------------------------------------------------------------------------
      def create_viewports
        @viewport4 = Viewport.new(0, 0, 544, 416)
        @viewport4.z = 9
        hev_fog_feature_create_viewports
      end
      #--------------------------------------------------------------------------
      # * Create Fog
      #--------------------------------------------------------------------------
      def create_fog
        @fog = Plane.new(@viewport4)
        if Fog_Map_Settings::Fog_maps.include?($game_map.map_id)
          fog_number = Fog_Map_Settings::Fog_maps[$game_map.map_id]
          update_fog
          @fog.bitmap = Cache.picture(Fog_Map_Settings::Fog_names[fog_number])
          @fog.opacity = Fog_Map_Settings::Fog_opacity[fog_number]
          @fog.zoom_x = @fog.zoom_y = Fog_Map_Settings::Fog_zoom[fog_number]
          @fog.blend_type = Fog_Map_Settings::Fog_blend[fog_number]
        end      
      end
      #--------------------------------------------------------------------------
      # * Update Fog Sprite
      #--------------------------------------------------------------------------
      def update_fog
        if @fog != nil
          @fog.ox = $game_map.display_x / 8 + $game_map.fog_ox
          @fog.oy = $game_map.display_y / 8 + $game_map.fog_oy
        end
      end
      #--------------------------------------------------------------------------
      # * Frame Update
      #--------------------------------------------------------------------------
      def update
        hev_fog_feature_update
        update_fog
      end
      #--------------------------------------------------------------------------
      # * Dispose of Fog Sprite
      #--------------------------------------------------------------------------
      def dispose_fog
        @fog.dispose
      end
      #--------------------------------------------------------------------------
      # * Dispose
      #--------------------------------------------------------------------------
      def dispose
        dispose_fog
        hev_fog_feature_dispose
      end
    end

  • profile
    황금시계 2012.02.16 16:00

    감사합니다.


List of Articles
종류 분류 제목 글쓴이 날짜 조회 수
공지 묻고 답하기 가이드 습작 2014.06.14 21144
이벤트 작성 RMMV 타 이벤트 이동 루트 설정 오류 1 2022.01.08 168
이벤트 작성 RMMZ 인벤토리에 아이템 이미지 순서대로 채워지는 시스템 이벤트로 작성이 가능할까요? file yellowcat 2022.09.02 176
이벤트 작성 RMVX 장면 넘어갈때 기다리게 할수있는법 4 걍사람 2022.01.17 342
이벤트 작성 RMVXA 특정 조건 달성시 게임 폴더에 메모장 추가하기 5 무해 2022.01.26 278
이벤트 작성 RMVXA 추격자 잔움직임 제거 1 다크크리에이터 2022.01.27 216
이벤트 작성 RMMV 변수나 스위치의 변화를 감지하는 방법 7 file 믕믱이 2022.02.14 248
이벤트 작성 RMVXA 호로로의 산소같은 게이지 만들기 2 넹글 2022.03.25 234
이벤트 작성 RMMV 맵 이동 반복 이벤트 6 HYUNWOL 2022.04.17 243
이벤트 작성 RMVXA 캐릭터가 서있을 때에 변화를 주고 싶습니다. 4 zx히어로zx 2022.04.26 627
이벤트 작성 RMVXA 상점에서 돈이 있어도 아이템을 딱 하나만 살 수 있게 바꿀 수 있나요? 4 유리컵 2022.09.22 286
이벤트 작성 RMVXA 필드를 돌아다니다 보면 나오는 잡몹들에 대하여 2 seoha3360 2022.04.30 230
이벤트 작성 RM2k3 특정한 시간동안 멈춰있을 시 동작하는 이벤트를 만들고싶습니다 wl 2022.05.12 237
이벤트 작성 RMVXA 전투 시작시 캐릭터 목소리(혹은 효과음) 나오게 하는 법 1 초보노인 2022.05.30 301
이벤트 작성 기타 아이템 사용하는 방법 알려주세요 4 file 몰라요모라 2022.05.31 290
이벤트 작성 RMMV (MV) 캐릭터를 특정 장소를 다 확인하고 돌아오면 나타나게 할 수 있나요? 2 병아리모험 2022.06.18 149
이벤트 작성 RMMV (MV) 하나의 이벤트를 여러군데에 넣을 수 있나요? 4 병아리모험 2022.06.17 192
이벤트 작성 RMMV 선택지를 하나하나 삭제해나가고 싶습니다. 4 쬬릿스 2022.06.27 347
이벤트 작성 RMMZ 특정 상황에서 현재 있는 맵의 이름을 띄워주는 기능이 있나요? lsilstar 2022.08.02 279
이벤트 작성 RMMV 그림표시를 루프하고싶습니다. 2 Graper 2022.07.12 155
이벤트 작성 RMVX 몇번 이상 죽었을 때 이벤트 나오게하기 1 TAN009 2022.07.13 181
Board Pagination Prev 1 ... 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 ... 84 Next
/ 84