RPGVX.net

  RPG-Maker VX => VX Skripte [Fertiger Code] => Thema gestartet von: woratana am Mai 16, 2008, 07:16:55

Titel: [Snippet] + [ Balloon SE ] +
Beitrag von: woratana am Mai 16, 2008, 07:16:55
Balloon SE
Version 1.0
by Woratana
Release Date: 15/05/2008


Introduction
This script will play SE when show balloon.
It's just small snippet I wrote in less than a min.  :P

Anyway, I feels like balloon with SE is better than silent balloon, so I scripted this~
I'll be using this in my Foxsuke Project.  ;)

Enjoy~! :)


Script
Place it above main
#==============================================================================
# [VX Snippet] ? Ballon SE ?
#-------------------------------------------------------------------------
# ? by Woratana [woratana@hotmail.com]
# ? Thaiware RPG Maker Community
# ? Released on: 15/04/2008
# ? Version: 1.0
#==============================================================================

class Sprite_Character < Sprite_Base
  
  Balloon_SE = 'Load' # SE (Sound Effect) file name, it must be in folder SE
  Balloon_SE_Volume = 80 # SE volume (0 - 100) Default: 80
  Balloon_SE_Pitch = 100 # SE pich (50 - 150) Default: 100
  
  alias wora_ballse_sprcha_strball start_balloon
  def start_balloon
    RPG::SE.new(Balloon_SE,Balloon_SE_Volume,Balloon_SE_Pitch).play
    wora_ballse_sprcha_strball
  end
end


Instruction
Just put script above main.  :lol:


Author's Notes
Free for use in your project if credit is included.
SimplePortal 2.3.3 © 2008-2010, SimplePortal