[solved] HK Animated Title Screen version 1 to Ace

The open source demo version of Hanzo Kimura's Valkyrie Stories Animated Title Script has already been translated to RGSS3 but the original HK Animated Title (version 1) is by far my favorite version.

The coder who translated version 2 to RGSS3 said they were going to do version 1 also but alas I have still not seen it after months of waiting .  I really want to use this in my Ace demos and projects.

Here is the actual code

Spoiler
#==============================================================================# Hanzo Kimura's Animated Title Screen, a re-do by Speed.# Scripted Date: 02/24/09# PLEASE CREDIT: Hanzo Kimura and Speed for the edit# if you are going to use this script for your title.## IMAGES USED(All in Graphics/System) Folder:# "TitleBGLoop.jpg" - For Scrolling Upward Effect# "TitleBGSprite.jpg" - For Horizantally Endless Scrolling # "TitleCursor.png" - For the title cursor# "TitleMenu01.png" - For the title Menu (First Menu Active)# "TitleMenu02.png" - For the title Menu (Second Menu Active)# "TitleMenu03.png" - For the title Menu (Third Menu Active)# "TitleLogo.png" - For the Title Logo# "TitleSpark01.png" - For the Title Spark# "TitleSpark02.png" - For the Title Spark# "TitleSymbol.png" - For the Title Symbol# "TitleCursorStrike01.png" - For Title Cursor Strike Effect(Left)# "TitleCursorStrike02.png" - For Title Cursor Strike Effect(Right)# **"TitleBG.jpg" - For Still Version Title Background## RE-CODE by Speed:# - Removed unnecessary duplicate code from Scene_Title# - Aliased what I can, it's not compatible with other scripts, but still# it saves lines and duplicate code.# - Removed disposal of unnecessary objects (if you dispose @sprite, you don't# need to dispose @sprite.bitmap after that)# - Added an array for the image objects, for faster disposal and removes of# duplicate code.# - Fixed unnecessary if blocks.# - Removed all global variables except $STILL_BG, since you won't change# the speed and everything in game it's unnecessary, consumes memory and# it's dangerous as it can kill other scripts.# - Moved the variables into a start method (initializing them).# - Changed @wave.dispose if @wave != nil # now more robust, because now it disposes the sprite if it was created,# before you could turn off the $STILL_BG in title and it would keep the # background on screen if you would change scenes.# - More minor things. All and all, the script is now less dangerous and # obtrusive, and the number of lines of code was halved.## IF YOU FIND ANY BUGS REPORT HERE:# http://www.rpgmakervx.net/index.php?showtopic=16133&st=60 #==============================================================================$STILL_BG = false # true=Still Background false=Animated Background.#-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-\#----|Scene_Title|--------------------------------------------------------/#-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-\#--This class performs the title screen processing.-----------------------/#========================================================================/class Scene_Title < Scene_Base #-------------------------------------------------------------------------- # * Start (Alias) | EDITING AREA #-------------------------------------------------------------------------- alias :start_oldie_speed :start def start #NEW FUNCTIONS @TITLE_MENU_X = 184 # Menu X Position @TITLE_MENU_Y = 260 # Menu Y Position @LOGO_X = 0 # Logo X Position @LOGO_Y = 0 # Logo Y Position @SPARK_COUNT = 350 # SPARK COUNT: Frames before the spark appears again @SPARK_SPEED = 5 # The speed of the sparks @MENU_NEW = 260 # THE Y Position of the cursor on NEW GAME @MENU_CONTINUE = 305 # THE Y Position of the cursor on CONTINUE @MENU_EXIT = 345 # THE Y Position of the cursor on EXIT @SYMBOL_SPEED = 1 #-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-\ #---|DO NOT EDIT BELOW!|--------------------------------------------------/ #-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-\ #========================================================================/ @SYMBOL_RESET = false start_oldie_speed end #-------------------------------------------------------------------------- # * Frame Update (Overwrite) #-------------------------------------------------------------------------- def update super if $STILL_BG == false #=======Wave Animation========= @wave.update #=====Background Animation===== if @sprite.oy != 0 @sprite.oy -= 1 elsif @sprite.oy == 0 @sprite.ox += 1 end if @wave.oy != 0 @wave.oy -= 1 elsif @wave.oy == 0 if @TITLE_LOOP == 1 && @wave.ox != 1289 @wave.ox += 1 else @TITLE_LOOP == 2 end if @TITLE_LOOP == 2 && @wave.ox != -1189 @wave.ox -= 1 else @TITLE_LOOP == 1 end end end #=======Symbol Animation======= @s[7].ox -= @SYMBOL_SPEED @SYMBOL_RESET = false if @SYMBOL_RESET == true && @s[7].opacity == 0 @s[7].opacity += 3 if @s[7].opacity != 255 #=======Spark Animation======== @s[8].x += @SPARK_SPEED @s[9].x -= @SPARK_SPEED if @SPARK_COUNT != 0 @SPARK_COUNT -= 1 else @SPARK_COUNT = 350 @s[8].x = -172 @s[9].x = 544 end if @s[8].opacity != 255 @s[8].opacity += 20 @s[9].opacity += 20 end #=======Menu Animation========= case @command_window.index when 0 #New game @s[8].y = @MENU_NEW - 20 @s[7].oy = @MENU_NEW + 183 @s[5].y = @s[6].y = @s[9].y = @MENU_NEW if @s[1].opacity != 255 @s[1].opacity += 20 @s[2].opacity -= 20 @s[3].opacity -= 20 end @s[4].y -= 5 if @s[4].y != @TITLE_MENU_Y when 1 #Continue @s[8].y = @MENU_CONTINUE - 20 @s[7].oy = @MENU_CONTINUE + 93 @s[5].y = @s[6].y = @s[9].y = @MENU_CONTINUE if @s[2].opacity != 255 @s[2].opacity += 20 @s[1].opacity -= 20 @s[3].opacity -= 20 end if @s[4].y != @MENU_CONTINUE && @s[4].y < @MENU_CONTINUE @s[4].y += 5 elsif @s[4].y != @MENU_CONTINUE && @s[4].y > @MENU_CONTINUE @s[4].y -= 5 end when 2 #Shutdown @s[8].y = @MENU_EXIT - 20 @s[7].oy = @MENU_EXIT + 13 @s[5].y = @s[6].y = @s[9].y = @MENU_EXIT if @s[3].opacity != 255 @s[3].opacity += 20 @s[1].opacity -= 20 @s[2].opacity -= 20 end @s[4].y += 5 if @s[4].y != @MENU_EXIT end @command_window.update #====Cursor Animation===== @s[5].x += 11 if @s[5].x != 0 @s[6].x -= 12 if @s[6].x != 308 check_menu if Input.trigger?(Input::C) case @command_window.index when 0 #New game command_new_game when 1 # Continue command_continue when 2 # Shutdown command_shutdown end end end #-------------------------------------------------------------------------- # * Checking Current Menu (Overwrite) #-------------------------------------------------------------------------- def check_menu if Input.trigger?(Input::UP) or Input.trigger?(Input:😀OWN) @SPARK_COUNT = 350 @s[8].x = -172; @s[9].x = 640 @s[8].opacity = @s[9].opacity = @s[7].opacity = 0 @SYMBOL_RESET = true @s[5].x = -330; @s[6].x = 680 case @command_window.index when 0 #New game @s[8].y = 280; @s[9].y = 300 @s[7].oy = 403 @s[5].y = @s[6].y = 300 when 1 # Continue @s[8].y = 325; @s[9].y = 345 @s[7].oy = 358 @s[5].y = @s[6].y = 345 when 2 # Shutdown @s[8].y = 365; @s[9].y = 385 @s[7].oy = 317 @s[5].y = @s[6].y = 385 end end end #-------------------------------------------------------------------------- # * Create Title Graphic (Overwrite) #-------------------------------------------------------------------------- def create_title_graphic @viewport1 = Viewport.new(0, 0, 1288, 891) @viewport2 = Viewport.new(0, 0, 824, 480) @viewport2.z = 10 if $STILL_BG == false @sprite = Plane.new(@viewport1) @sprite.bitmap = Cache.system("1Test") @sprite.oy = 371; @sprite.ox = 100; @sprite.z = -100 @wave = Sprite.new(@viewport1) @wave.bitmap = Cache.system("TitleBGSpriteX") @wave.oy = 371; @wave.ox = 100; @wave.wave_amp = 50; @wave.wave_length = 440 @wave.wave_speed = 1250; @wave.opacity = 125; @wave.z = 5 else @sprite = Sprite.new @sprite.bitmap = Cache.system("TitleBGX") @sprite.y = @sprite.x = 0; @sprite.z = -100 end #sprite array @s = [] for i in 0...10 @s = Sprite.new end #Game logo @s[0].bitmap = Cache.system("ct2") #("DHTitle") #("D-Clear1-546") @s[0].x = @LOGO_X; @s[0].y = @LOGO_Y; @s[0].z = 10 #menu01, menu 02, menu 03 @s[1].bitmap = Cache.system("TitleMenu01") @s[2].bitmap = Cache.system("TitleMenu02") @s[3].bitmap = Cache.system("TitleMenu03") @s[2].opacity = @s[3].opacity = 0 @s[1].x = @s[2].x = @s[3].x = @TITLE_MENU_X @s[1].y = @s[2].y = @s[3].y = @TITLE_MENU_Y #cursor @s[4].bitmap = Cache.system("TitleCursor") @s[4].x = @TITLE_MENU_X; @s[4].y = @TITLE_MENU_Y; @s[4].z = 12 #strike1, strike2 @s[5].bitmap = Cache.system("TitleCursorStrike01") @s[5].x = 0; @s[5].y = 260; @s[5].z = 9 @s[6].bitmap = Cache.system("TitleCursorStrike02") @s[6].x = 308; @s[6].y = 260; @s[6].z = 9 #symbol @s[7] = Plane.new(@viewport2) @s[7].bitmap = Cache.system("TitleSymbol") @s[7].oy = 443; @s[7].ox = 100 #spark01, spark02 @s[8].bitmap = Cache.system("TitleSpark01") @s[8].y = 280; @s[8].x = -172; @s[8].z = 12 @s[9].bitmap = Cache.system("TitleSpark02") @s[9].y = 300; @s[9].x = 640; @s[9].z = 12 @s[1].z = @s[2].z = @s[3].z = 13 if @continue_enabled @s[1].opacity = 0; @s[2].opacity = 255 @s[4].y = 305; @s[5].y = 305; @s[6].y = 305 @s[7].oy = 398 end end #-------------------------------------------------------------------------- # * Dispose of Title Graphic (Overwrite) #-------------------------------------------------------------------------- def dispose_title_graphic @wave.dispose if @wave != nil @sprite.dispose for i in [email hidden] @s.dispose end end #-------------------------------------------------------------------------- # * Create Command Window (Alias) #-------------------------------------------------------------------------- alias :create_command_window_oldie_speed :create_command_window def create_command_window create_command_window_oldie_speed @command_window.x = (Graphics.width - @command_window.width) / 2 @command_window.y = 998 endend 

I would greatly love to see this script on Ace!

Edit- I can provide the working RGSS3 version 2 if you need to compare anything. 
do you know if anyone has translated the custom menu script yet?

Original thread: https://forums.rpgmakerweb.com/threads/solved-hk-animated-title-screen-version-1-to-ace.15665/