Per 2016, RMID pindah ke RMID Discord (Invite link dihapus untuk mencegah spambot -Theo @ 2019). Posting sudah tidak bisa dilakukan lagi.
Mohon maaf atas ketidaknyamanannya dan mohon kerjasamanya.
|
|
| 2013-08-07, 14:12 | [Port] MOG Wallpaper VX |
---|
Putra Heart Newbie
Posts : 63 Thanked : 0 Engine : RMVX Skill : Beginner Type : Event Designer
Awards:
| MOG WALLPAPER EX Versi: 1.1 Screenshot " /> Script - Code:
-
#============================================================================== # +++ MOG - Wallpaper EX (V1.1) +++ #============================================================================== # * VX translation by Putra Heart # By Moghunter # http://www.atelier-rgss.com #============================================================================== # - Adiciona um papel de parede e adiciona alguns efeitos animados. #============================================================================== # Para mudar de papel de parede no meio do jogo basta usar o código abaixo. # # $game_system.wallpaper = "FILE_NAME" # #============================================================================== # E para mudar de velocidade de scroll use o código abaixo. # # $game_system.wallpaper_scroll = [ SPEED_X, SPEED_Y] # #============================================================================== # Serão necessários os seguintes arquivos na pasta GRAPHICS/SYSTEM. # # Menu_Particles.png # wallpaper # #============================================================================== # ● Histórico (Version History) #============================================================================== # v 1.1 - Melhoria no sistema de dispose de imagens. #============================================================================== module MOG_WALLPAPER_EX #Ativar Particulas animadas. PARTICLES = true #Numero de particulas. NUMBER_OF_PARTICLES = 10 #Deslizar a imagem de fundo. BACKGROUND_SCROLL_SPEED = [0,0] #Definição da opacidade das janelas. WINDOW_OPACITY = 32 end
#============================================================================== # ■ Game_System #============================================================================== class Game_System attr_accessor :wallpaper #-------------------------------------------------------------------------- # ● Initialize #-------------------------------------------------------------------------- alias mog_wallpaper_initialize initialize def initialize mog_wallpaper_initialize @wallpaper = "Background" end end
#============================================================================== # ■ Menu Particles #============================================================================== class Menu_Particles < Sprite #-------------------------------------------------------------------------- # ● Initialize #-------------------------------------------------------------------------- def initialize(viewport = nil) super(viewport) self.bitmap = Cache.system("Menu_Particles") reset_setting(true) end #-------------------------------------------------------------------------- # ● Reset Setting #-------------------------------------------------------------------------- def reset_setting(start) zoom = (50 + rand(100)) / 100.1 self.zoom_x = zoom self.zoom_y = zoom self.x = rand(544) if start self.y = rand(416 + self.bitmap.height) else self.y = 416 + rand(32 + self.bitmap.height) end self.opacity = 0 self.blend_type = 1 @speed_x = 0 @speed_y = [[rand(3), 3].min, 1].max @speed_a = 0#rand(3) end #-------------------------------------------------------------------------- # ● Dispose #-------------------------------------------------------------------------- def dispose super self.bitmap.dispose end #-------------------------------------------------------------------------- # ● Update #-------------------------------------------------------------------------- def update super self.x += @speed_x self.y -= @speed_y self.angle += @speed_a self.opacity += 5 reset_setting(false) if self.y < 0 end end
#============================================================================== # ■ LAYOUT_EX #============================================================================== module WALLPAPER_EX include MOG_WALLPAPER_EX #-------------------------------------------------------------------------- # ● Start #-------------------------------------------------------------------------- def start super create_particles end #-------------------------------------------------------------------------- # ● Set Window OPACITY #-------------------------------------------------------------------------- def set_window_opacity instance_variables.each do |varname| ivar = instance_variable_get(varname) if ivar.is_a?(Window) ivar.opacity = WINDOW_OPACITY end end end #-------------------------------------------------------------------------- # ● Create Particles #-------------------------------------------------------------------------- def create_particles return unless PARTICLES dispose_menu_particles @particle_viewport = Viewport.new(-32, -32, 576, 448) @particle_bitmap =[] for i in 0...NUMBER_OF_PARTICLES @particle_bitmap.push(Menu_Particles.new(@particle_viewport)) end end
#-------------------------------------------------------------------------- # ● Create Background #-------------------------------------------------------------------------- def create_background @background_sprite = Plane.new @background_sprite.bitmap = Cache.system($game_system.wallpaper) rescue nil @background_sprite.bitmap = SceneManager.background_bitmap if @background_sprite.bitmap == nil end #-------------------------------------------------------------------------- # ● Dispose Light #-------------------------------------------------------------------------- def dispose_menu_particles return unless PARTICLES if @particle_bitmap != nil @particle_bitmap.each {|sprite| sprite.dispose} @particle_viewport.dispose @particle_bitmap = nil end end #-------------------------------------------------------------------------- # ● Dispose Background #-------------------------------------------------------------------------- def dispose_background return if @background_sprite == nil @background_sprite.bitmap.dispose @background_sprite.dispose @background_sprite = nil end #-------------------------------------------------------------------------- # ● Terminate #-------------------------------------------------------------------------- def terminate super dispose_menu_particles end #-------------------------------------------------------------------------- # ● Update #-------------------------------------------------------------------------- def update super update_particle update_background end #-------------------------------------------------------------------------- # ● Update Background #-------------------------------------------------------------------------- def update_background end #-------------------------------------------------------------------------- # ● Update Particle #-------------------------------------------------------------------------- def update_particle return unless PARTICLES @particle_bitmap.each {|sprite| sprite.update } end end
#============================================================================== # ● Scene Menu #============================================================================== class Scene_Menu < Scene_Menu include WALLPAPER_EX #-------------------------------------------------------------------------- # ● Start #-------------------------------------------------------------------------- alias mog_layout_ex_start start def start mog_layout_ex_start set_window_opacity end end
#============================================================================== # ● Scene Item #============================================================================== class Scene_Item < Scene_Item include WALLPAPER_EX #-------------------------------------------------------------------------- # ● Start #-------------------------------------------------------------------------- alias mog_layout_ex_start start def start mog_layout_ex_start set_window_opacity end end
#============================================================================== # ● Scene Skill #============================================================================== class Scene_Skill < Scene_Skill include WALLPAPER_EX #-------------------------------------------------------------------------- # ● Start #-------------------------------------------------------------------------- alias mog_layout_ex_start start def start mog_layout_ex_start set_window_opacity end end
#============================================================================== # ● Scene Equip #============================================================================== class Scene_Equip < Scene_Equip include WALLPAPER_EX #-------------------------------------------------------------------------- # ● Start #-------------------------------------------------------------------------- alias mog_layout_ex_start start def start mog_layout_ex_start set_window_opacity end end
#============================================================================== # ● Scene Status #============================================================================== class Scene_Status < Scene_Status include WALLPAPER_EX #-------------------------------------------------------------------------- # ● Start #-------------------------------------------------------------------------- alias mog_layout_ex_start start def start mog_layout_ex_start set_window_opacity end end
#============================================================================== # ● Scene File #============================================================================== class Scene_File < Scene_File include WALLPAPER_EX #-------------------------------------------------------------------------- # ● Start #-------------------------------------------------------------------------- alias mog_layout_ex_start start def start mog_layout_ex_start set_window_opacity end end
#============================================================================== # ● Scene End #============================================================================== class Scene_End < Scene_End include WALLPAPER_EX #-------------------------------------------------------------------------- # ● Start #-------------------------------------------------------------------------- alias mog_layout_ex_start start def start mog_layout_ex_start set_window_opacity end end
#============================================================================== # ● Window SaveFile #============================================================================== class Window_SaveFile < Window_SaveFile #-------------------------------------------------------------------------- # ● Initialize #-------------------------------------------------------------------------- alias mog_wallpaper_initialize initialize def initialize(height, index) mog_wallpaper_initialize(height, index) self.opacity = WALLPAPER_EX::WINDOW_OPACITY if can_opacity_window? end #-------------------------------------------------------------------------- # ● Can Opacity Window #-------------------------------------------------------------------------- def can_opacity_window? return true end end
$mog_rgss3_wallpaper_ex = true Untuk gambar dari scrpt bisa download disini : https://2img.net/r/ihimizer/img16/4927/7hxm.png NB: Taruh gambar tersebut di "Graphic/Systems/" dengan nama Menu_Particles . Script yang saya translate belum begitu sempurna seperti Wallpaper VX ACE, jadi background yang semestinya tampak pada VX ACE menjadi tidak ada di VX, karena saya belum bisa menemukan script buat backgroundnya. |
| | | 2013-08-07, 14:57 | Re: [Port] MOG Wallpaper VX |
---|
arls Advance
Posts : 412 Thanked : 3 Engine : RMVX Ace Skill : Very Beginner Type : Mapper
Awards:
| maksud translate kk di sini mengubah script vx ace menjadi vx ya kk ? (maklum, bukan pengguna tetap ke 2 nya) |
| | | 2013-08-07, 15:03 | Re: [Port] MOG Wallpaper VX |
---|
Putra Heart Newbie
Posts : 63 Thanked : 0 Engine : RMVX Skill : Beginner Type : Event Designer
Awards:
| Iya betul banget, Jadi Script VX ACE saya ubah jadi VX. Tapi sayangnya masih belum sempurna karena belum bisa menampilkan Backgroundnya. |
| | | | Re: [Port] MOG Wallpaper VX |
---|
Sponsored content
| | | | Similar topics | |
|
Similar topics | |
| |
Halaman 1 dari 1 | |
| Permissions in this forum: | Anda tidak dapat menjawab topik
| |
| |
Latest 10 Topics | [Web Novel] Gloria Infidelis 2016-11-17, 21:27 by LightNightKnight
[Announcement] Forum baru untuk RMID 2016-08-25, 16:39 by TheoAllen
Where I'm Wrong ? 2016-07-24, 16:10 by ReydVires
flakeheartnet's Resources part III 2016-07-08, 14:30 by flakeheartnet
Keira's Art Warehouse 2016-06-28, 19:27 by KeiraBlaze
Theo Core Time System + Bingung 2016-06-27, 16:24 by Lockin
Error Script, Maybe ? 2016-06-27, 16:20 by Lockin
Nusaimoe @ RMID Lounge 2016-06-21, 05:02 by Jihad Bagas
Call Random Battle 2016-06-15, 17:04 by Lockin
Flakeheartnet Resources Part II [come back gift] 2016-06-07, 15:51 by flakeheartnet
|
Statistics
|
Members: [ 4947 ]
Topics: [ 8258 ]
Posts: [ 112606 ]
Newest member: [ https://rmid.forumotion.net/u4968 ]
|
|
|
|
|
|