Valentino Posted September 22, 2010 Share Posted September 22, 2010 (edited) Panorama Acceleration System DescrizioneQuesto script fa si che si possa muovere il panorama orizzontalmente e verticalmente tramite call script da evento.È possibile anche fare aquistare una certa velocità al panorama facendolo accelerare o decelerare.AutoreAvon Valentino (Io) AllegatiDemo Link:http://www.mediafire.com/download.php?62ob4a4jw7jp2dxScript #Script creato da Valentino Avon se lo usate creditatemi ;) #------------------------Panorama Acceleration System------------------------# #Questo script permette di muovere e di simulare un accellerazione con il panorama. #Per impostare una velocità di movimento settare tramite call script le variabili: # $pano_x e $pano_y per muovere di quella velocità il panorama. # #Per simulare l'accelerazione richiamare tramite call script: # $scene.accelerazione(X,Y,TEMPO) #al posto di X sostituire l'accelerazione orizzontale #al posto di Y sostituire l'accelerazione verticale #al posto di TEMPO sostituire il tempo in FRAME. 20 frame = 1 secondo #----------------------------------------------------------------------------- #switch da attivare per muovere il panorama se OFF non verranno apportate modifiche. N_SWITCH = 1 class Spriteset_Map alias pano_initialize initialize def initialize $pano_x = 0 $pano_y = 0 pano_initialize end def accelerazione(x,y,tempo) for i in 0..(tempo) $pano_x += i*x*0.05 $pano_y += i*y*0.05 update Input.update Graphics.update end end alias pano_update update def update pano_update if $game_switches[N_SWITCH] @panorama.ox += $pano_x @panorama.oy += $pano_y end end end class Scene_Map def accl(x=0,y=0,tempo=0) @spriteset.accelerazione(x,y,tempo) end end Istruzioni per l'usoBisogna fare una modifica alla Spriteset_Map di default (per evitare di sovvrascrivere totalmente l'update)cercate questo: @panorama.ox = $game_map.display_x / 8 @panorama.oy = $game_map.display_y / 8 e sostituitelo con: unless $game_switches[N_SWITCH] @panorama.ox = $game_map.display_x / 8 @panorama.oy = $game_map.display_y / 8 end Per il resto trovate tutto all'interno dello script, se lo usate creditatemi per favore Bugs e Conflitti NotiN/A Edited April 27, 2013 by Dilos Script monoriga sistemato. Targhette Rpg2s:http://img14.imageshack.us/img14/5421/contestsecondo.png Partecipante al Rpg2s.net Game Contest #3http://www.rpg2s.net/images/gc3/gc3_firma.pngGioco in Sviluppo: DREAMS http://img16.imageshack.us/img16/2121/dreamstitle2.png SKY's CRY!http://www.rpg2s.net...showtopic=12557 Lista di script creati da me: Support System FF9 Multiscope System Advanced Armor System Protection System Trance System FF2 Development System Scene Vittoria Animato Aperion System Elemosina System Valentino's Scene Shop Item Plus System Panorama Acceleration System Conversione da VX a XP, Vehicle System Sentinel System Scene Zoolab Valentino's Random System Oggetti Riutilizzabili Break Pictures Limit Gameover Animato Valentino's Gun Mode Valentino's Ally System 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