collapse collapse

 Community


 User Info




Willkommen Gast. Bitte einloggen oder registrieren.

 Partnerseiten

rpgvx.net

Das Forum ist offline

Autor Thema: Scene Logo Script (von Dëvic)  (Gelesen 3525 mal)

LuX

  • Gast
Scene Logo Script (von Dëvic)
« am: März 10, 2008, 16:47:03 »
Ich bin mir nicht sicher ob das nicht doch in den Sammelthread gehört ^^'

Erklärung
Ein Freund von mir, Dëvic hat ein Skript names ,,Scene Logo" erstellt. Es ist ganz simpel:
Bevor der Titelbildschirm Scene_Title angezeigt wird, ist durch dieses Skript zuerst ein Bild zu sehen z.B. ein Logo, ähnlich wie bei den Nintendo Games =)
Ich habe seinen Text versucht sinngemäß zu übersetzen.

Features
(das war mir dann doch zu hoch zum Übersetzen *hust*)
- Images' name is built in an Array, so you can have an unlimited amount of images shown;
- Fade in/out system that smooth (a lot :3) the image's draw on screen;
- Fading delay (in frames) is customizable; it is the time the fade effect takes to show/hide the image;
- Image's delaying (in frames) is also customizable, and it is the time that the image shall stay in the screen;
- Now with support for Audio (BGM, BGS, ME & SE) to be played on image's show (beta feature!).

Screenshots
Von 1~3:
- Fade-in effect;
- Image wait in the screen;
- Fade-out effect (der Titelbildschirm ist danach ganz normal)

How to Use
Um das Skript zu installieren, fügt es in den "Materials" Bereich vom Skript Editor hinzu, über "Main".
Nach der Installation könnt ihr es anpassen indem ihr die Variablen verändert, die Angaben jeder Variable steht im Skript.

Demo
Ich glaube das ist nicht nötig aber wenn ihr welche wollt kann ich eine machen! =^^=

Zitat
Script
#==============================================================================
# ** Scene_Logo 1.7 RGSS2
# Script and RGSS2 debugging by Dëvic
# Support and RGSS1 debuggin by Isaacsol
# Version history:
#   ~ 07.03.08 :: First version released with fade effects, image delaying and
#                 unlimited number of logo images.
#   ~ 10.03.08 :: Version 1.7 released with beta Audio processing; plays all
#                 types of Audio (BGM, BGS, SE & ME), but just one through all
#                 the Scene. It is possible to disable Audio.
#------------------------------------------------------------------------------
# Shows on the screen the logos on startup. Compatible only with RGSS2!
#   Questions, acknowledgments and requests should be taken on the Thread at:
#   English thread:
#   http://www.rpgmakervx.net/index.php?showtopic=974
#   Portuguese thread:
#   http://www.rpgmakerbrasil.com/forum/f43/rmvx-scene-logo-1-7-rgss2-552.html
#==============================================================================

class Scene_Logo
  # Audio types Constant; leave it as nil to disable Audio.
  # Standard value: %w( BGM BGS ME SE )
  AudioTypes = %w( BGM BGS ME SE )
  
  # The Method here the options are customised.
  def initialize
    # Include in this array the logo(s) image(s), there is no limit for the
    # array's size.
    @img = [ 'Image1', 'Image2', 'Image3' ]
    # Here, set 'true' if you want to have a fade in and fade out effect,
    # otherwise set to 'false'.
    @fade = true
    # Choose the amount of time taken to make the fade in/out effects (in
    # frames).
    # Standard: 20 frames.
    @fade_delay = 20
    # Choose the wait time (in frames [1/60 seconds]) that a logo image shall
    # stay in the screen.
    # Standard: 120 frames.
    @delaying = 120
    # General audio instance variable array; first three values are:
    # "Audio name", "Volume" and "Pitch"; next one is the type, based on the
    # constant AudioTypes[x], for x: 0: BGM; 1: BGS; 2: SE and 3: ME.
    @audio = [ 'AudioName', 100, 100, AudioTypes[x] ]
    main
  end
  
  # The Method where the image processing is made.
  def main
    # For each image in the Array...
    @img.each { |i|
      # Is made a new Sprite object...
      sprite = Sprite.new
      # The Sprite's image is loaded from "../Graphics/System/" folder...
      sprite.bitmap = Cache.system(i)
      # Check if Audio is enabled...
      if AudioTypes
        # Finds out Audio type and plays choosen Audio...
        case @audio[3]
        when 'BGM'
          Audio.bgm_play("Audio/BGM/#{@audio[0]}", @audio[1], @audio[2])
        when 'BGS'
          Audio.bgs_play("Audio/BGS/#{@audio[0]}", @audio[1], @audio[2])
        when 'ME'
          Audio.me_play("Audio/ME/#{@audio[0]}", @audio[1], @audio[2])
        when 'SE'
          Audio.se_play("Audio/SE/#{@audio[0]}", @audio[1], @audio[2])
        end
      end
      # Module's method transition is called...
      Graphics.transition
      # Fade in effect is done if fade is enabled...
      Graphics.fadein(@fade_delay) if @fade == true
      # Now wait command is done...
      Graphics.wait(@delaying)
      # Fade out effect is done is fade is enabled...
      Graphics.fadeout(@fade_delay) if @fade == true
      # Now the Sprite object is disposed...
      sprite.dispose
      # And the screen freezed...
      Graphics.freeze
     }
  end
end

# Here is the change in the Scene_Title class.
class Scene_Title
  alias old_start start
  def start
    Scene_Logo.new
    old_start
  end
end


FAQ
Bis jetzt gab es noch keine Fragen. ^^

Credit and Thanks
- Dëvic
- Isaacsol

Author's Notes
Das Skript funktioniert nur mit RGSS2 (RPG Maker VX)
Die Audio Funktion ist erst in der Betaphase, also kann es sein das es damit noch ein paar Probleme geben wird.. xD"
Wenn ihr einen Bug findet, bitte postet ihn damit ich das Skript verbessern kann! ^^

Dëvic! o/~

Re: Scene Logo Script (von Dëvic)

Offline freezing rain

  • Database-Verunstalter
  • **
  • Beiträge: 132
Re: Scene Logo Script (von Dëvic)
« Antwort #1 am: Januar 21, 2011, 22:45:39 »
Dieses Script ist zwar schon sau alt, aber ich hab halt ne Frage dazu:
Bei mir klappts irgendwie nicht. Das Image im System-Ordner meines Spiels, welches ich anzeigen lassen möchte, heißt "Sprite.png". Wo muss ich das jetzt genau einfügen, damit er das vor dem Titelmenü zeigt?

Re: Scene Logo Script (von Dëvic)

Offline Johny-Kk

  • 1,2,3,5????
  • Database-Verunstalter
  • **
  • Beiträge: 146
  • Ich bin wie ich bin...
    • 4 Souls <3
Re: Scene Logo Script (von Dëvic)
« Antwort #2 am: Februar 07, 2011, 18:48:33 »
script 'werbung' (so hab ich es genannt oO) line 1 : Syntax Error occured
!?!
was heißt das?
die anforderungen (RGSS2) sind erfüllt was ist der fehler?

Re: Scene Logo Script (von Dëvic)

Offline PDM

  • Bibliothekar
  • Global Mod
  • VX-Kenner
  • ****
  • Beiträge: 468
    • Mein Blog
Re: Scene Logo Script (von Dëvic)
« Antwort #3 am: Februar 07, 2011, 19:23:42 »
Hm, hast du vielleicht da # vor den Nicht-Skript-Zeilen weggemacht?
PDM's Gameplays
Skype-Name: lordpdm

Re: Scene Logo Script (von Dëvic)

Offline Johny-Kk

  • 1,2,3,5????
  • Database-Verunstalter
  • **
  • Beiträge: 146
  • Ich bin wie ich bin...
    • 4 Souls <3
Re: Scene Logo Script (von Dëvic)
« Antwort #4 am: Februar 08, 2011, 16:28:22 »
muss das etwa weg?

Re: Scene Logo Script (von Dëvic)

Offline Cyberxeroxx

  • Eventmeister
  • ***
  • Beiträge: 333
  • Es ist ein guter Tag um Böse zu sein Muhahahahaha
Re: Scene Logo Script (von Dëvic)
« Antwort #5 am: Februar 08, 2011, 17:53:51 »
Nein das muss am Anfang der Zeile stehen ;)

Re: Scene Logo Script (von Dëvic)

Offline Valentine

  • Eventmeister
  • ***
  • Beiträge: 352
Re: Scene Logo Script (von Dëvic)
« Antwort #6 am: Juni 17, 2011, 18:44:11 »
Hmm... Irgendwie rall ich das nicht :/

Script ist eingefügt. Und was jetzt?
Hab im System Ordner n Bild eingefügt mit n Logo drauf im .png format. Habs einfach Image1 genannt, aber dann kommt n Fehler mit Zeile 44.

Mag mir jemand das genauer erklären wie man das zum laufen bringt?

Re: Scene Logo Script (von Dëvic)

Offline Kaia

  • Grusella
  • Ralph
  • *
  • Beiträge: 17
  • Me gusta.
    • Deviantart
Re: Scene Logo Script (von Dëvic)
« Antwort #7 am: September 10, 2011, 22:16:32 »
Jipp.
Da du keine Audio-Datei hast musst du die erwähnten Zeilen bei denen es zum fehler kommt (bei mir 44, 58 und 64 (oder 68) entweder löschen oder zu Kommentaren machen indem du ein '#' davor setzt.

Dann klappt alles wunderbar.

Re: Scene Logo Script (von Dëvic)

Offline Valentine

  • Eventmeister
  • ***
  • Beiträge: 352
Re: Scene Logo Script (von Dëvic)
« Antwort #8 am: September 23, 2011, 10:47:46 »
Moin!

Danke Danke, klappt jetzt tatsächlich =)

Re: Scene Logo Script (von Dëvic)

Offline Kaia

  • Grusella
  • Ralph
  • *
  • Beiträge: 17
  • Me gusta.
    • Deviantart
Re: Scene Logo Script (von Dëvic)
« Antwort #9 am: September 23, 2011, 15:49:51 »
Nichts zu danken :)

 


 Bild des Monats

rooftop party

Views: 3576
By: papilion

 Umfrage

  • Wer soll das BdM gewinnen?
  • Dot Kandidat 1
  • 3 (25%)
  • Dot Kandidat 2
  • 1 (8%)
  • Dot Kandidat 3
  • 2 (16%)
  • Dot Kandidat 4
  • 0 (0%)
  • Dot Kandidat 5
  • 6 (50%)
  • Stimmen insgesamt: 12
  • View Topic

 Schnellsuche





SimplePortal 2.3.3 © 2008-2010, SimplePortal