Sleeping Leonhart Posted December 23, 2007 Share Posted December 23, 2007 Titolo Multi FrameDescrizioneRovistando tra i miei documenti ho ritrovato questo vecchio script che permette di avere un titolo con più immagini in sequenza.AutoreThe Sleeping LeonhartScript #=============================================================================== # Multiple Frame Title # by The Sleeping Leonhart #=============================================================================== class Scene_Title alias tsl_scene_title_main main def main #==========================CONFIGURAZIONE========================== @frame_number = 8 #Numero di frame @title_name = "PG" #Nome della picture @wait = 5 #Tempo di attesa fra una picture e l'altra #================================================================= @frame = 2 @wait_count = 1 tsl_scene_title_main end alias tsl_scene_title_update update def update if @wait_count < @wait @wait_count += 1 if @wait_count == @wait if @frame < @frame_number+1 @sprite.bitmap.dispose @sprite.dispose @sprite = Sprite.new @sprite.bitmap = RPG::Cache.title(@title_name+@frame.to_s) @wait_count = 1 if @frame == @frame_number @frame = 0 end end @frame += 1 end end tsl_scene_title_update end end Istruzioni per l'usoLe immagini vanno inserite nella cartella Title e devono avere tutte lo stesso nome seguite dal numero del frame nel quale devono apparire, il primo frame va impostato come title nel database.Cambiate i seguenti valori all'interno dello script per ottenere l'effetto desiderato: @frame_number = 8 #Numero di frame @title_name = "Nome_Immagine" #Nome della picture @wait = 5 #Tempo di attesa fra una picture e l'altra http://img296.imageshack.us/img296/8784/csuserbarew2.pngScarica la Demo!Tutti i miei script(o quasi) li trovi Qui! Link to comment Share on other sites More sharing options...
Walrus1235 Posted December 24, 2007 Share Posted December 24, 2007 Utile... l'avevo già visto da qualche parte, comunque molto utile. One flew east, one flew west, one flew over the cuckoo's nest. Link to comment Share on other sites More sharing options...
André LaCroix Posted December 26, 2007 Share Posted December 26, 2007 Ma può essere usato per fare una vera e propria animazione, oppure è meglio usarlo per visualizzare una sequenza di immagini nel titolo? (Sì, sono l'AnteroLehtinen che bazzica in chat. E... sì, una volta insegnavo storyboarding.)http://img26.imageshack.us/img26/7048/firmadn.png Link to comment Share on other sites More sharing options...
Sleeping Leonhart Posted December 26, 2007 Author Share Posted December 26, 2007 In teoria puoi farci una vera e propria animazione ma sappi che la visualizzazione delle immagini è ciclica. http://img296.imageshack.us/img296/8784/csuserbarew2.pngScarica la Demo!Tutti i miei script(o quasi) li trovi Qui! Link to comment Share on other sites More sharing options...
André LaCroix Posted December 27, 2007 Share Posted December 27, 2007 Beh, ovvio.Ma non ci sono problemi di lag in caso faccia un'ani? (Sì, sono l'AnteroLehtinen che bazzica in chat. E... sì, una volta insegnavo storyboarding.)http://img26.imageshack.us/img26/7048/firmadn.png Link to comment Share on other sites More sharing options...
Sleeping Leonhart Posted December 27, 2007 Author Share Posted December 27, 2007 (edited) Io ho provato con una sequenza di 106 immagini impostando il tempo di attesa a 5 e nn mi ha laggato per niente ora provo con ancora più immagini e ti faccio sapere. Edit:Ho testato con 1000 immagini (tutte a 640*480 in png, occupavano 640mb XD) prima con tempo di attesa 5 e poi con tempo di attesa 2. Nel primo caso il frame rate era a 35 fisso (anzichè 40) nel secondo 15. Stessi risualtati con le stesse immagini però in jpg, l'unico vantaggio in questo caso è la dimensione dei file. Edited December 27, 2007 by Sleeping Leonhart http://img296.imageshack.us/img296/8784/csuserbarew2.pngScarica la Demo!Tutti i miei script(o quasi) li trovi Qui! Link to comment Share on other sites More sharing options...
André LaCroix Posted December 28, 2007 Share Posted December 28, 2007 o.oAvevo chiesto un piccolo favore e tu hai fatto le cose in grande XDDDDDComunque mi confermi che con una sessantina di immagini non c'è problema di lag?Ok. (Sì, sono l'AnteroLehtinen che bazzica in chat. E... sì, una volta insegnavo storyboarding.)http://img26.imageshack.us/img26/7048/firmadn.png Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now