Sleeping Leonhart Posted August 21, 2007 Share Posted August 21, 2007 Panorama MoverDescrizionePiccolo script che permette di far muovere il panoramaAutoreThe Sleeping LeonhartScript #=============================================================================== # Panorama Mover 1.1 #=============================================================================== # The Sleeping Leonhart # Version 1.0 # 23-8-2007 #=============================================================================== # Piccolo script che permette di far muovere il panorama. # Per poterlo usare dovete usare il comando script in un evento ed # inserire il seguente codice: $game_map.move_panorama(x,y) # Per poter far si che il panorama si muova automaticamente in una determinata mappa # compilate l'hash AUTOSCROLL_MAP. #=============================================================================== module Panorama_Mover # AUTOSCROLL_MAP = {id mappa => [movimento x, movimento y] AUTOSCROLL_MAP = { 1 => [2,1] } # non toccare altrimenti tutti i panorami si muovono AUTOSCROLL_MAP.default = [0,0] end class Game_Map attr_reader :panorama_ox attr_reader :panorama_oy alias tsl_game_map_setup setup def setup(map_id) tsl_game_map_setup(map_id) @panorama_ox = 0 @panorama_oy = 0 end def move_panorama(x,y) @panorama_ox += x @panorama_oy += y end alias tsl_game_map_update update def update tsl_game_map_update move_panorama(Panorama_Mover::AUTOSCROLL_MAP[@map_id][0],Panorama_Mover::AUTOSCROLL_MAP[@map_id][1]) end end class Spriteset_Map alias tsl_spriteset_map_update update def update tsl_spriteset_map_update @panorama.ox += $game_map.panorama_ox @panorama.oy += $game_map.panorama_oy end end Istruzioni per l'usoDovete usare il comando script in un evento ed inserire il seguente codice: $game_map.move_panorama(x,y) Per poter far si che il panorama si muova automaticamente in una determinata mappacompilate l'hash AUTOSCROLL_MAP nel seguente modo AUTOSCROLL_MAP = {id mappa => [movimento x, movimento y] 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...
redXIII Posted August 21, 2007 Share Posted August 21, 2007 ottimo script mi funziona alla perfezione sei un grande... LAST LEGEND tempo di programmazione rimasto in percentuale è:Storia del gioco: 98%Storia dei personaggi: 75%Storia politica mondiale: 80%Applicazione e sviluppo dell'avventura, tempo rimasto in percentuale è:Titleset:40%Charaset:20%Animation:90%Idem,Skill,Armi:50%Scene Animate:10%http://img518.imageshack.us/img518/5919/logoufficialecopiawr2.png Link to comment Share on other sites More sharing options...
Sleeping Leonhart Posted August 21, 2007 Author Share Posted August 21, 2007 Grazie sono molto lusingato 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...
Sleeping Leonhart Posted August 23, 2007 Author Share Posted August 23, 2007 Aggiornato alla 1.1.Ora si può impostare il movimento automatico per il panorama. 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...
Soul Eater Posted August 23, 2007 Share Posted August 23, 2007 Ottimo lavoro!!! Targhettehttp://www.rpg2s.net/awards/mostpolite2.jpghttp://www.rpg2s.net/awards/mostpresent1.jpghttp://i51.tinypic.com/2mfnpt2.png http://www.rpg2s.net/dax_games/r2s_regali5.png Link to comment Share on other sites More sharing options...
Tio Posted August 25, 2007 Share Posted August 25, 2007 Script utilissimo, bravo Leonheart! ;)Appena torna Timisci aggiorniamo i rens ;) "Dopo gli ultimi Final Fantasy, ho capito solamente una cosa: che il gioco è bello quando Nomura poco."Making is not dead. You are dead.RELEASE: La Bussola d'Oro | Download | Video di anteprima - La Partenza di Hanna http://i.imgur.com/cFgc2lW.png Prova Standrama! Link to comment Share on other sites More sharing options...
Caios Posted October 14, 2007 Share Posted October 14, 2007 mi da errore, per l'evento. Che cos'e' la firma? Link to comment Share on other sites More sharing options...
Sleeping Leonhart Posted October 14, 2007 Author Share Posted October 14, 2007 Cosa ti dice esattamente? 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...
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