Here you are.....
#==============================================================================
# ¦ Scene_Credits
#------------------------------------------------------------------------------
# Scrolls the credits you make below. Runs By calling...
# $scene = Scene_Credits.new
# Give credit to: Unknown, Emily_Konichi, AvatarMonkeyKirby, Mr_Wiggles
#==============================================================================
#-----------------------------------------------------------------------------
# CONFIG TXT - What does the text look like?
#-----------------------------------------------------------------------------
CREDITS_FONT = ["Times New Roman"]
CREDITS_SIZE = 24
CREDITS_OUTLINE = Color.new( 0, 0,127, 255) # (Red, Green, Blue, Gray)
CREDITS_SHADOW = Color.new( 0, 0, 0, 100)
CREDITS_FILL = Color.new(255,255,255, 255)
CREDITS_SPEED = 2 # Use A Number Between 1.0 - 5.0
CREDITS_SKIP = true # Can skip credits
SKIP_KEY = Input::C # Skip credits key
#-----------------------------------------------------------------------------
# CONFIG MUSIC - Play BG music?
#-----------------------------------------------------------------------------
BG_MUSIC = "012-Theme01" # "CASE SENSITVIE" Name of BMG to play
VOLUME = 100 # Volume of BGM 1 - 100
PITCH = 50 # Pitch of BGM 1 - 100 (1=slow, 50=norm, 100=fast)
#-----------------------------------------------------------------------------
# CONFIG VIEW PORT - Where do you want the credits to play?
#-----------------------------------------------------------------------------
VIEW_X = 0 # X pos of Credits box Default = 0
VIEW_Y = 0 # Y pos of Credits box Default = 0
VIEW_H = 480 # Hight of Credits box Default = 480
VIEW_W = 640 # Width of Credits box Default = 640
#-----------------------------------------------------------------------------
class Scene_Credits
#------------------------------------------------------------------------------
# ADD Credits BELLOW This ***** DON'T CHANGE | CREDIT=<<_END_ | *****
#------------------------------------------------------------------------------
# NOTE: It auto centers all txt
CREDIT=<<_END_
THE END
Credit those people at the top!!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
We Hope you Enjoyed Playing The Game!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_END_
#------------------------------------------------------------------------------
# ADD Credits ABOVE This **** DON'T CHANGE | _END_ | *****
#------------------------------------------------------------------------------
def main
#==============================================================================
# Animated Background Setup
#==============================================================================
@sprite = Sprite.new
@sprite.bitmap = RPG::Cache.title($data_system.title_name)
#------------------------------------------------------------------------------
# Edit this to the title screen(s) you wish to show in the background.
# They do repeat. if you don't want any use [""] "files must be located
# in Title Chache. Pictures added must folow this format...
# ["pic 1", "pic 2", "pic 3"]
#------------------------------------------------------------------------------
@backgroundList = [""]
#------------------------------------------------------------------------------
# Number of game frames per background picture. "20 = 1 sec"
@backgroundGameFrameCount = 0
#------------------------------------------------------------------------------
# =================
# END EDIT AREA
# =================
#==============================================================================
# Load BG Images
@backgroundG_BFrameCount = 3.4
@sprite.bitmap = RPG::Cache.title(@backgroundList[0])
# Play BGM
Audio.bgm_play("Audio/BGM/" + BG_MUSIC, VOLUME, PITCH)
#---------------------------
# Creates Credits txt
#---------------------------
credit_lines = CREDIT.split(/\n/)
credit_bitmap = Bitmap.new(640,32 * credit_lines.size)
credit_lines.each_index do |i|
line = credit_lines[i]
credit_bitmap.font.name = CREDITS_FONT
credit_bitmap.font.size = CREDITS_SIZE
x = 0
credit_bitmap.font.color = CREDITS_OUTLINE
credit_bitmap.draw_text(0 + 1,i * 32 + 1,640,32,line,1)
credit_bitmap.draw_text(0 - 1,i * 32 + 1,640,32,line,1)
credit_bitmap.draw_text(0 + 1,i * 32 - 1,640,32,line,1)
credit_bitmap.draw_text(0 - 1,i * 32 - 1,640,32,line,1)
credit_bitmap.font.color = CREDITS_SHADOW
credit_bitmap.draw_text(0,i * 32 + 8,640,32,line,1)
credit_bitmap.font.color = CREDITS_FILL
credit_bitmap.draw_text(0,i * 32,640,32,line,1)
end
#------------------------------------------------------------------------------
@credit_sprite = Sprite.new(Viewport.new(VIEW_X,VIEW_Y,VIEW_W,VIEW_H))
#------------------------------------------------------------------------------
@credit_sprite.bitmap = credit_bitmap
@credit_sprite.z = 9998 #9998
@credit_sprite.oy = -430 #-430
@frame_index = 0 # 0
@last_flag = false # false
#--------
# Setup
#--------
#Stops all audio but background music.
Audio.me_stop
Audio.bgs_stop
Audio.se_stop
Graphics.transition
loop do
Graphics.update
Input.update
update
if $scene != self
break
end
end
Graphics.freeze
@sprite.dispose
@credit_sprite.dispose
end
#----------------------------------------------------------------------------
# Update
#----------------------------------------------------------------------------
def update
@backgroundGameFrameCount = @backgroundGameFrameCount + 1
if @backgroundGameFrameCount >= @backgroundG_BFrameCount
@backgroundGameFrameCount = 0
# Add current background frame to the end
@backgroundList = @backgroundList << @backgroundList[0]
# and drop it from the first position
@backgroundList.delete_at(0)
@sprite.bitmap = RPG::Cache.title(@backgroundList[0])
end
#-----------------------------------------------------------------------------
# Skip Key pressed
#-----------------------------------------------------------------------------
if CREDITS_SKIP and Input.trigger?(SKIP_KEY)
Graphics.freeze
Graphics.transition(40)
Audio.bgm_fade(20)
$scene = Scene_Title.new
end
#-----------------------------------------------------------------------------
# Credits Reached ending point
#-----------------------------------------------------------------------------
def last?
if @frame_index > (@credit_sprite.bitmap.height + 430) #430
Graphics.freeze
Graphics.transition(60)
Audio.bgm_fade(40)
#-----------------------------------------------------------------------------
# Return to Title
#-----------------------------------------------------------------------------
$scene = Scene_Title.new
return true
end
return false
end
#-----------------------------------------------------------------------------
return if last?
@credit_sprite.oy += CREDITS_SPEED
@frame_index += CREDITS_SPEED
end
end
as for a password just do an event just like this one here:
create a character "any and name it what ever in this exsample its called Password"
name imput prossesing == character "password"conditional branch: [Password] is name *your password* appliedif its right do this
elseif its wrong do this
branch end