RPGMakerID
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Komunitas RPG Maker Indonesia
 
IndeksIndeks  Latest imagesLatest images  PencarianPencarian  PendaftaranPendaftaran  Login  
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.

 

 [Tanya]About Bgm

Go down 
2 posters
PengirimMessage
Chapoenk
Newbie
Newbie
Chapoenk


Level 5
Posts : 34
Thanked : 0
Engine : RMVX
Skill : Very Beginner
Type : Event Designer

[Tanya]About Bgm Empty
PostSubyek: [Tanya]About Bgm   [Tanya]About Bgm Empty2010-07-14, 10:58

Kk dan cc senior, mo nanya dong..

  • Bagaimana supaya bgmnya tetap nyala pada saat encounter musuh?(bgmnya ga brubah musiknya misalkan lagunya metalica trus pas battle lagunya tetep metalica cmn ga putus alias ngalir terus lagunya.)
  • Bagaimana cara supaya pas mulai encounter musuh bgmnya pause dulu lalu pas dah selesai lanjut lagi bgmnya dan nyambung bukan dari awal lagi lagunya?
Segitu aja dulu deh. Nanti kalo ada lagi, mohon bantuannya yah wahai penghuni forum ini. :sembah:


Terakhir diubah oleh Chapoenk tanggal 2010-07-14, 11:02, total 1 kali diubah (Reason for editing : Merapihkan)
Kembali Ke Atas Go down
Guest
Tamu
Anonymous



[Tanya]About Bgm Empty
PostSubyek: Re: [Tanya]About Bgm   [Tanya]About Bgm Empty2010-07-14, 11:04

Yang Nomer 1 Di Jawab Dengan Ini

[spooiler]
Code:
#==============================================================================
# ** Make BGM unchange 1.01 by ERZENGEL <erzvx@live.de>
#==============================================================================

DURING = 2  # if the switch with ID 9 is on the BGM won't change at the battle

#==============================================================================
# ** Scene_Map
#------------------------------------------------------------------------------
#  This class performs the map screen processing.
#==============================================================================

class Scene_Map < Scene_Base
  #--------------------------------------------------------------------------
  # * Switch to Battle Screen
  #--------------------------------------------------------------------------
  def call_battle
    unless $game_switches[DURING]
      @spriteset.update
      Graphics.update
      $game_player.make_encounter_count
      $game_player.straighten
      $game_temp.map_bgm = RPG::BGM.last
      $game_temp.map_bgs = RPG::BGS.last
      RPG::BGM.stop
      RPG::BGS.stop
      Sound.play_battle_start
      $game_system.battle_bgm.play
      $game_temp.next_scene = nil
      $scene = Scene_Battle.new
    else
      @spriteset.update
      Graphics.update
      $game_player.make_encounter_count
      $game_player.straighten
      Sound.play_battle_start
      $game_temp.next_scene = nil
      $scene = Scene_Battle.new
    end
  end
end

#==============================================================================
# ** Scene_Battle
#------------------------------------------------------------------------------
#  This class performs battle screen processing.
#==============================================================================

class Scene_Battle < Scene_Base
  #--------------------------------------------------------------------------
  # * End Battle
  #    result : Results (0: win, 1: escape, 2:lose)
  #--------------------------------------------------------------------------
  def battle_end(result)
    if result == 2 and not $game_troop.can_lose
      call_gameover
    else
      $game_party.clear_actions
      $game_party.remove_states_battle
      $game_troop.clear
      if $game_temp.battle_proc != nil
        $game_temp.battle_proc.call(result)
        $game_temp.battle_proc = nil
      end
      unless $BTEST
        unless $game_switches[DURING]
          $game_temp.map_bgm.play
          $game_temp.map_bgs.play
        end
      end
      $scene = Scene_Map.new
      @message_window.clear
      Graphics.fadeout(30)
    end
    $game_temp.in_battle = false
  end
  #--------------------------------------------------------------------------
  # * Victory Processing
  #--------------------------------------------------------------------------
  def process_victory
    unless $game_switches[DURING]
      @info_viewport.visible = false
      @message_window.visible = true
      RPG::BGM.stop
      $game_system.battle_end_me.play
      unless $BTEST
        $game_temp.map_bgm.play
        $game_temp.map_bgs.play
      end
      display_exp_and_gold
      display_drop_items
      display_level_up
      battle_end(0)
    else
      @info_viewport.visible = false
      @message_window.visible = true
      display_exp_and_gold
      display_drop_items
      display_level_up
      battle_end(0)
    end
  end
end
[/spoiler]

Yang kedua Dua

Gag Tau :hammer:
Kembali Ke Atas Go down
eve
Loli Mecha Mesum Musume
avatar


Level 5
Posts : 1620
Thanked : 30
Engine : Other
Skill : Beginner
Type : Writer

Trophies
Awards:

[Tanya]About Bgm Empty
PostSubyek: Re: [Tanya]About Bgm   [Tanya]About Bgm Empty2010-07-14, 11:13

nomor dua:
pake scriptnya REI Audio Player. Coba google. Wa punya scriptnya tapi musti minta izin dulu ama yang punya buat masang di sini kan.
Kembali Ke Atas Go down
Sponsored content





[Tanya]About Bgm Empty
PostSubyek: Re: [Tanya]About Bgm   [Tanya]About Bgm Empty

Kembali Ke Atas Go down
 
[Tanya]About Bgm
Kembali Ke Atas 
Halaman 1 dari 1
 Similar topics
-
» [SOLVED] tanya - tanya variable ??
» Tanya, Tanya, Tanya Ver 1.3
» Tanya-tanya dong...
» [ask] mau tanya
» Tanya,tanya,tanya Ver 1.2

Permissions in this forum:Anda tidak dapat menjawab topik
RPGMakerID :: Engines :: RMVX-
Navigasi: