Main Menu
  • Welcome to The RPG Maker Resource Kit.

Lol!

Started by Blizzard, April 05, 2006, 04:16:30 PM

0 Members and 1 Guest are viewing this topic.

Blizzard

Lol, even I need help sometimes! Okay, I want the map bgm to continue after a battle is over. I don
Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.



Get DropBox, the best free file syncing service there is!

haloOfTheSun

I've requested this several times before, and no one ever even tried to help. Maybe you'll get lucky this time.  :|
:tinysmile:

Blizzard

I will try it again everytime I have some free time. It is simple, I just need to find the catch...
What I
Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.



Get DropBox, the best free file syncing service there is!

haloOfTheSun

I don't have RMXP anymore anyway, so....  :mrgreen:
:tinysmile:

Blizzard

Lol, right! I forgot!
:mrgreen: *throws rocks at Blizzard*

Ouch!
Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.



Get DropBox, the best free file syncing service there is!

Tsunokiette

This is rather simple, it just involves placing these two lines:

$game_system.bgm_memorize & $game_system.bgm_restore

in the proper places.

Just place this above main, it SHOULD work -

[code]class Scene_Map
   #--------------------------------------------------------------------------
   # * Battle Call
   #--------------------------------------------------------------------------
   def call_battle
      # Clear battle calling flag
      $game_temp.battle_calling = false
      # Clear menu calling flag
      $game_temp.menu_calling = false
      $game_temp.menu_beep = false
      # Make encounter count
      $game_player.make_encounter_count
      # Memorize map BGM and stop BGM
      $game_temp.map_bgm = $game_system.playing_bgm
      $game_system.bgm_memorize
      $game_system.bgm_stop
      # Play battle start SE
      $game_system.se_play($data_system.battle_start_se)
      # Play battle BGM
      $game_system.bgm_play($game_system.battle_bgm)
      # Straighten player position
      $game_player.straighten
      # Switch to battle screen
      $scene = Scene_Battle.new
   end
end
class Scene_Battle
   #--------------------------------------------------------------------------
   # * Battle Ends
   #
"The wonderful thing about Tiggers
Is Tiggers are wonderful things
Their tops are made out of rubber
Their bottoms are made out of springs

They're bouncy, trouncy, flouncy, pouncy
Fun, fun, fun, fun, fun!
But the most wonderful thing about Tiggers
Is I'm the only one, I'm the only one."

Blizzard

Lol, no! (You think I haven
Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.



Get DropBox, the best free file syncing service there is!

Tsunokiette

#7
Erm, actualy it should work, because that's exactly what they do, they store the position in the bgm.

It's how it's set up in Interpreter as well.

Are you sure you weren't just putting them in the wrong place?

B/c is you put it in the wrong place, it could memorize the music, play it from the saved spot, then play it automaticly from the begining if you put it in the wrong place.

EDIT: that and you just said $game_system.bgm_play, I'm talking about restore :wink:
"The wonderful thing about Tiggers
Is Tiggers are wonderful things
Their tops are made out of rubber
Their bottoms are made out of springs

They're bouncy, trouncy, flouncy, pouncy
Fun, fun, fun, fun, fun!
But the most wonderful thing about Tiggers
Is I'm the only one, I'm the only one."

Blizzard

#8
Hm... I
Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.



Get DropBox, the best free file syncing service there is!

Tsunokiette

Well I'll be darned, it doesn't work lol. I betcha I know why. It's either because the scene changed and the data was changed from within, or it's the fact that rmxp doesn't have dynamic audio controlls.

It's most likely the former, but there are people working on programming through the use of the RGSS dynamic audio controlls.
"The wonderful thing about Tiggers
Is Tiggers are wonderful things
Their tops are made out of rubber
Their bottoms are made out of springs

They're bouncy, trouncy, flouncy, pouncy
Fun, fun, fun, fun, fun!
But the most wonderful thing about Tiggers
Is I'm the only one, I'm the only one."

Blizzard

#10
No, I tried to make the variabes global and it also didn
Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.



Get DropBox, the best free file syncing service there is!