질문과 답변

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 12392
이벤트 작성 RMMV 맵 이동 반복 이벤트 6 HYUNWOL 2022.04.17 209
이벤트 작성 RMVXA 캐릭터가 서있을 때에 변화를 주고 싶습니다. 4 zx히어로zx 2022.04.26 583
이벤트 작성 RMVXA 상점에서 돈이 있어도 아이템을 딱 하나만 살 수 있게 바꿀 수 있나요? 4 유리컵 2022.09.22 243
이벤트 작성 RMVXA 필드를 돌아다니다 보면 나오는 잡몹들에 대하여 2 seoha3360 2022.04.30 211
이벤트 작성 RM2k3 특정한 시간동안 멈춰있을 시 동작하는 이벤트를 만들고싶습니다 wl 2022.05.12 154
이벤트 작성 RMVXA 전투 시작시 캐릭터 목소리(혹은 효과음) 나오게 하는 법 1 초보노인 2022.05.30 258
이벤트 작성 기타 아이템 사용하는 방법 알려주세요 4 file 몰라요모라 2022.05.31 251
이벤트 작성 RMMV (MV) 캐릭터를 특정 장소를 다 확인하고 돌아오면 나타나게 할 수 있나요? 2 병아리모험 2022.06.18 111
이벤트 작성 RMMV (MV) 하나의 이벤트를 여러군데에 넣을 수 있나요? 4 병아리모험 2022.06.17 140
이벤트 작성 RMMV 선택지를 하나하나 삭제해나가고 싶습니다. 4 쬬릿스 2022.06.27 315
이벤트 작성 RMMZ 특정 상황에서 현재 있는 맵의 이름을 띄워주는 기능이 있나요? lsilstar 2022.08.02 239
이벤트 작성 RMMV 그림표시를 루프하고싶습니다. 2 Graper 2022.07.12 116
이벤트 작성 RMVX 몇번 이상 죽었을 때 이벤트 나오게하기 1 TAN009 2022.07.13 128
이벤트 작성 RMMV 셀프 스위치와 일반 스위치의 차이는 무엇인가요? 1 마이메이 2022.07.24 101
이벤트 작성 RMMV 장소이동 변수로 지정에 관해 질문드립니다! 5 Graper 2022.07.18 118
이벤트 작성 RMMV 공통 이벤트가 계속 2번 뜨네요 6 file Graper 2022.07.20 141
이벤트 작성 RMVXA 맵을 확대하는 이벤트도 만들 수 있나요? 2 머리큰두두 2022.07.21 127
이벤트 작성 RMVXA 텍스트 출력방식 변경하는 방법이 뭔가요? 1 먹사 2022.11.26 66
이벤트 작성 RMMV 추격자가 꾸준하게 따라오게 할 수 있을까요? 1 카심 2022.10.05 71
이벤트 작성 RMVXA 이벤트 작동 방식 중 Player Touch를 다루기 조금 어렵습니다. 3 file zx히어로zx 2022.11.09 65
Board Pagination Prev 1 ... 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 ... 82 Next
/ 82