Title Transition

● ARCHIVED · READ-ONLY
Started by Krishna Siva 7 posts View original ↗
  1.            Title Transitions Script
                                                                                By KrishGM
     
    Introduction
    This script shows a image before the title screen like a company's logo in may video games.
     
    How To Use
    Install the script below the materials section and above the Main section.
     
     
    Script

    Spoiler
    Code:
    =begin Title Transitions ScriptBy Krish GMMake a Image of 544x416 for your logoImport into the Graphics/System folderName it LogoA=endShow_Image = true #asks whether you want to show it or not. def show_logosprite = Sprite.newGraphics.fadeout(0) Audio.se_play("Audio/SE/Wind10",74,74) #you can change the se to anything you want.sprite.bitmap = Cache.system('LogoA')Graphics.fadein(120)#Set the number to frames for the fadein.Graphics.wait(90)#Set how much time it shows the image.Graphics.fadeout(120)#Set the number to frames for the fadeout.end #don't tamper with thisshow_logo unless Show_Image == false
     
    Credits
    KrishGM (Me)
  2. It's good,but it's called Splash Screen.Not title transition.But I still like this.Keep it up !
  3. This looks better than the one found in the Lite version of VX Ace.
  4. I made something similar to this, however I have been having issues getting the logo to go away. This script works great! Thanks!

    Joe
  5. Is this able to be used commercially?
  6. I see this creates a sprite object and it never actually disposes it, which creates a memory leak.

    To fix that, add these lines at the end of the 'show_logo' method:

    Code:
    sprite.bitmap.disposesprite.dispose
  7. Fixed script format, credit KrishGM. Also included memory leak fix by Sixth.
    Code:
    =begin Title Transitions Script
    By Krish GM
    Make a Image of 544x416 for your logo
    Import into the Graphics/System folder
    Name it LogoA
    =end
    Show_Image = true #asks whether you want to show it or not.
    def show_logo
    sprite = Sprite.new
    Graphics.fadeout(0)
    Audio.se_play("Audio/SE/Wind10",74,74) #you can change the se to anything you want.
    sprite.bitmap = Cache.system('LogoA')
    Graphics.fadein(120) #Set the number to frames for the fadein.
    Graphics.wait(90) #Set how much time it shows the image.
    Graphics.fadeout(120) #Set the number to frames for the fadeout.
    sprite.bitmap.dispose
    sprite.dispose
    end #don't tamper with this
    show_logo unless Show_Image == false