[Solved] BGS change while using Ship

Status
Not open for further replies.

Oriceles

Veteran
Veteran
Joined
Apr 4, 2012
Messages
384
Reaction score
71
First Language
English
Primarily Uses
N/A
Title of the thread is self explanatory.  

I just want to add the sea BGS when the player is using the Ship, off course this is not the same as replacing the BGM on any form.

Can somebody help me please?
 
Last edited by a moderator:

SoulPour777

Crownless King
Veteran
Joined
Aug 15, 2012
Messages
1,093
Reaction score
104
First Language
English
Primarily Uses
N/A
Done :)

Code:
module VehicleBGS  BGS_for_Ship = "Darkness"endclass Game_Vehicle < Game_Character  alias game_vehicle_change_bgs_get_on      get_on  alias game_vehicle_change_bgs_get_off     get_off  #--------------------------------------------------------------------------  # * Board Vehicle  #--------------------------------------------------------------------------  def get_on    game_vehicle_change_bgs_get_on    play_ship_bgs if @type == :ship  end  #--------------------------------------------------------------------------  # * Get Off Vehicle  #--------------------------------------------------------------------------  def get_off    game_vehicle_change_bgs_get_off    stop_ship_bgs if @type == :ship  end    def play_ship_bgs    RPG::BGS.new(VehicleBGS::BGS_for_Ship, 100, 100).play  end    def stop_ship_bgs    RPG::BGS.stop    $game_map.autoplay  end  end
 

Oriceles

Veteran
Veteran
Joined
Apr 4, 2012
Messages
384
Reaction score
71
First Language
English
Primarily Uses
N/A
Done :)

module VehicleBGS BGS_for_Ship = "Darkness"endclass Game_Vehicle < Game_Character alias game_vehicle_change_bgs_get_on get_on alias game_vehicle_change_bgs_get_off get_off #-------------------------------------------------------------------------- # * Board Vehicle #-------------------------------------------------------------------------- def get_on game_vehicle_change_bgs_get_on play_ship_bgs if @type == :ship end #-------------------------------------------------------------------------- # * Get Off Vehicle #-------------------------------------------------------------------------- def get_off game_vehicle_change_bgs_get_off stop_ship_bgs if @type == :ship end def play_ship_bgs RPG::BGS.new(VehicleBGS::BGS_for_Ship, 100, 100).play end def stop_ship_bgs RPG::BGS.stop $game_map.autoplay end end
Thank you very much Soulpour777 :D , I guess it was a simple request haha
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,860
Messages
1,017,038
Members
137,568
Latest member
invidious
Top