질문과 답변

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 12456
RMVX 게임시작.... 3 바론아벨 2011.04.29 966
RMVX 아이콘칩 넣는법 2 아르켜주세요 2010.11.02 967
RMVX 계단 질문드립니다. 1 의사양반무슨말이오 2013.07.28 967
RMVX 데이터 압축에 실패했습니다 3 ★찜찜 2013.07.07 967
RMVX 파티원 없애는 방법 5 행복해 2013.09.13 967
RMVX 버튼사용시 물건이동방법 6 레고주민 2013.03.31 969
RMVX Vampry SBABS 9액알스크립트 보스에러...해결좀여 1 화살난사10억발!!! 2010.11.10 970
RMVX 공포게임을 만들려고 하는데....공포 필수아이템 피를 만들 방법을..... 5 a코코아a 2014.03.17 971
RMVX VX로 작업하던것을 VXAce 3 테오 2012.08.03 972
RMVX 그 공포 게임에 후레쉬 기능 3 뻘짓킹파야 2013.11.16 974
RMVX 게임을 클리어하면 타이틀 화면의 배경이 바뀌는 것 치이렌 2013.03.02 974
RMVX 게임 배포할때 용량 줄이는법 6 Thyella 2013.04.17 977
RMVX 사이드뷰 3.4 + ATB 1.2 버전 몬스터 4 하늘풍선 2010.10.12 978
RMVX 몬스터 장애물 피하기.. 2 행복해 2013.09.22 978
RMVX vx bgm 사운드가 안나와요~ 3 촤PD 2014.01.25 978
RMVX 캐릭터 프레임 증가 시키는게 가능한가요? 3 행복해 2013.09.13 979
RMVX 병렬처리 최적화 스크립트 같은거 없나요? 1 후라이팬샷 2013.10.29 980
RMVX 파티원에게 힐을 하면 경험치가 올라가게...... 5 레이아이 2010.10.29 980
RMVX XP배틀시스템 구현과 글씨의 크기 1 에레드루인 2011.06.18 980
RMVX 안녕하세요 제가 아직 초보라서 이벤트 처리를 잘 못하는데요... 7 by네바 2011.01.13 981
Board Pagination Prev 1 ... 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 ... 127 Next
/ 127