ElBudino95 Posted April 26, 2008 Share Posted April 26, 2008 (edited) Script per creare un terremoto By intersimone999 Descrizione:Questo script una una tecnica più semplice ma più efficace per creare un effetto terremoto. Note: Il terremoto non è bello con velocità come 1 o 2 perkè risulta molto piccolo di intensità. Procedimenti: class Game_Screen attr_reader :shake_v def initialize @shake_v = 0 end def update if @tone_duration >= 1 d = @tone_duration @tone.red = (@tone.red * (d - 1) + @tone_target.red) / d @tone.green = (@tone.green * (d - 1) + @tone_target.green) / d @tone.blue = (@tone.blue * (d - 1) + @tone_target.blue) / d @tone.gray = (@tone.gray * (d - 1) + @tone_target.gray) / d @tone_duration -= 1 end if @flash_duration >= 1 d = @flash_duration @flash_color.alpha = @flash_color.alpha * (d - 1) / d @flash_duration -= 1 end if @shake_duration >= 1 or @shake != 0 delta = @poss_x[[rand(@poss_x.size),0].max] delta2 = @poss_y[[rand(@poss_y.size),0].max] if @shake_duration <= 1 #and @shake * (@shake + delta) < 0 @shake = 0 @shake_v = 0 else @timing_speed += @shake_speed if @timing_speed >= 10 @timing_speed = 0 @shake = delta @shake_v = delta2 end end if @shake > @shake_power * 2 @shake_direction = -1 end if @shake < - @shake_power * 2 @shake_direction = 1 end if @shake_duration >= 1 @shake_duration -= 1 end end if @weather_duration >= 1 d = @weather_duration @weather_max = (@weather_max * (d - 1) + @weather_max_target) / d @weather_duration -= 1 if @weather_duration == 0 @weather_type = @weather_type_target end end if $game_temp.in_battle for i in 51..100 @pictures[i].update end else for i in 1..50 @pictures[i].update end end end end end class Spriteset_Map def update # パノラマが現在のものと異なる場合 if @panorama_name != $game_map.panorama_name or @panorama_hue != $game_map.panorama_hue @panorama_name = $game_map.panorama_name @panorama_hue = $game_map.panorama_hue if @panorama.bitmap != nil @panorama.bitmap.dispose @panorama.bitmap = nil end if @panorama_name != "" @panorama.bitmap = RPG::Cache.panorama(@panorama_name, @panorama_hue) end Graphics.frame_reset end # フォグが現在のものと異なる場合 if @fog_name != $game_map.fog_name or @fog_hue != $game_map.fog_hue @fog_name = $game_map.fog_name @fog_hue = $game_map.fog_hue if @fog.bitmap != nil @fog.bitmap.dispose @fog.bitmap = nil end if @fog_name != "" @fog.bitmap = RPG::Cache.fog(@fog_name, @fog_hue) end Graphics.frame_reset end # タイルマップを更新 @tilemap.ox = $game_map.display_x / 4 @tilemap.oy = $game_map.display_y / 4 @tilemap.update # パノラマプレーンを更新 @panorama.ox = $game_map.display_x / 8 @panorama.oy = $game_map.display_y / 8 # フォグプレーンを更新 @fog.zoom_x = $game_map.fog_zoom / 100.0 @fog.zoom_y = $game_map.fog_zoom / 100.0 @fog.opacity = $game_map.fog_opacity @fog.blend_type = $game_map.fog_blend_type @fog.ox = $game_map.display_x / 4 + $game_map.fog_ox @fog.oy = $game_map.display_y / 4 + $game_map.fog_oy @fog.tone = $game_map.fog_tone # キャラクタースプライトを更新 for sprite in @character_sprites sprite.update end # 天候グラフィックを更新 @weather.type = $game_screen.weather_type @weather.max = $game_screen.weather_max @weather.ox = $game_map.display_x / 4 @weather.oy = $game_map.display_y / 4 @weather.update # ピクチャを更新 for sprite in @picture_sprites sprite.update end # タイマースプライトを更新 @timer_sprite.update # 画面の色調とシェイク位置を設定 @viewport1.tone = $game_screen.tone @viewport1.ox = $game_screen.shake @viewport1.oy = $game_screen.shake_v # 画面のフラッシュ色を設定 @viewport3.color = $game_screen.flash_color # ビューポートを更新 @viewport1.update @viewport3.update end end Edited February 2, 2009 by Eikichi Il mio team con qui creo con RPG maker:http://i272.photobucket.com/albums/jj183/Edus_bucket/firmaRYUsoft.png Link to comment Share on other sites More sharing options...
Sora-Master Posted April 26, 2008 Share Posted April 26, 2008 c'era anke per l' XP cmq carino http://dragcave.net/image/VqHI.gifhttp://dragcave.net/image/5thF.gifhttp://dragcave.net/image/7cb8.gifhttp://dragcave.net/image/WPrD.gifhttp://dragcave.net/image/DxRI.gifhttp://dragcave.net/image/JAV2.gifhttp://dragcave.net/image/aiDE.gifclicca sull'uovoFrom Wikipidia:Makeritus vulgaris(Makeritus Enpatologium Catostum) Malattia che si sviluppa nel mekeratore.si manifesta con status alterati di noia e svogliatezza.Malattia grave poiche puo guarire solo con il tempo e impedisce il Maker al soggetto che ne è infetto.Attualmente gli scenziati della Ryu-soft stanno cercando rimedio a questa malattia Ryu-Soft VISITA LA MIA BOTTEGA http://r5.fodey.com/19cf30d77a0fd435cb06407ab7023508e.1.gif ouyang_keba@hotmail.it ha inviato 15/03/2009 15.24:yaDiosba S.O.J. 4ever!!!!! scrive:who's fat??ouyang_keba@hotmail.it ha inviato 15/03/2009 15.25:eccomi mi sono appena connessoouyang_keba@hotmail.it ha inviato 15/03/2009 15.26:wath?Diosba S.O.J. 4ever!!!!! scrive:O.ODiosba S.O.J. 4ever!!!!! scrive:si scrive whatouyang_keba@hotmail.it ha inviato 15/03/2009 15.26:mi sono connesso clandestinamente xD me manca un es di italiano e poi ho finito i compitiouyang_keba@hotmail.it ha inviato 15/03/2009 15.27:seDiosba S.O.J. 4ever!!!!! scrive:O.ODiosba S.O.J. 4ever!!!!! scrive:addiritturingouyang_keba@hotmail.it ha inviato 15/03/2009 15.28:e giaouyang_keba@hotmail.it ha inviato 15/03/2009 15.28:che me raccontiDiosba S.O.J. 4ever!!!!! scrive:mmmmhDiosba S.O.J. 4ever!!!!! scrive:qlcsa che ti farà feliceDiosba S.O.J. 4ever!!!!! scrive:indovining...Diosba S.O.J. 4ever!!!!! scrive:http://www.youtube.com/watch?v=p9Zt8mn14hY...feature=relatedouyang_keba@hotmail.it ha inviato 15/03/2009 15.28:mmmmmmmmmmmmmmmouyang_keba@hotmail.it ha inviato 15/03/2009 15.29:caghi a spruzzo xEDiosba S.O.J. 4ever!!!!! scrive:O.O ri iniziamo a giocare a D&D Diosba S.O.J. 4ever!!!!! scrive::xouyang_keba@hotmail.it ha inviato 15/03/2009 15.30:yeees!!Diosba S.O.J. 4ever!!!!! scrive: Link to comment Share on other sites More sharing options...
ElBudino95 Posted April 26, 2008 Author Share Posted April 26, 2008 c'era anke per l' XP cmq carinoGia ma per chi non ha XP per esempio io me potrebbe essere utile Il mio team con qui creo con RPG maker:http://i272.photobucket.com/albums/jj183/Edus_bucket/firmaRYUsoft.png Link to comment Share on other sites More sharing options...
Blake Posted April 27, 2008 Share Posted April 27, 2008 Che differenza c'è fra questo ed il comando "shake screen" degli eventi? http://www.xboxlc.com/cards/simplered/higherthanhope.jpg Spazio pubblicitario: Commentate, Bastardi! Grazie per la sopportazione! http://www.rpg2s.net/awards/beststoryboarder1.jpghttp://www.rpg2s.net/awards/mostcharismatic1.jpghttp://www.rpg2s.net/awards/nicestuser1.jpg http://rpg2s.net/gif/MGContest1.gif 1° Posto al minigame contesthttp://img215.imageshack.us/img215/2788/targhetta2pr0.png Link to comment Share on other sites More sharing options...
marigno Posted April 27, 2008 Share Posted April 27, 2008 (edited) "By intersimone" con i commenti in giapponese? XDD Comunque quoto blake. :happy: Edited April 27, 2008 by Marigno Link to comment Share on other sites More sharing options...
friday666 Posted April 27, 2008 Share Posted April 27, 2008 Quoto un pò tutti... cmq hai scritto effetto terremato e non terremoto.... (\__/)(='.'=)(")_(")Questo è Bunny. Ho deciso di aiutarlo nella sua missione di conquista del mondo.Compagni di Bunny unitevi a me! http://img170.imageshack.us/img170/1858/pizzelartzzennm9.pngI chara da me postati: CLICCA QUI! PER XP - CLICCA QUI! PER XP(2) - CLICCA QUI! PER VX - CLICCA QUI! PER 2K/2K3!I tileset da me postati:CLICCA QUI! PER XPI Personaggi Completi da me postati: CLICCA QUI! PER XP I Face da me postati: CLICCA QUI! PER XPI Battlers da me postati: CLICCA QUI! PER XP!Le Windowskin da me postate: CLICCA QUI! PER XP!Risorse sonore da me postate: CLICCA QUI! PER SCARICARLE!Guida al Ruby: CLICCA QUI! PER SCARICARLA!Vi prego di inserirmi nei crediti...Grazie! 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