Cerca nel Forum
Showing results for tags 'Tankentai Realistic Shadow'.
Trovato 1 risultato
-
BS/Battlers Addon Tankentai Realistic Shadow
Ally ha aggiunto un topic in Scripts RPG Maker VX (RGSS2)
Nome Script:Tankentai Realistic Shadow Versione: 0.2 Autore/i: wltr3565 Informazioni: Questo script, offre la possibilità di inserire sotto i PG un'ombra realistica che segue il movimento dello sprite di battaglia. E' un effetto molto bello che consiglio di inserire a chi usa il sistema di battaglia di Enu. Istruzioni: Inserite lo script sopra Main. Script: =begin ================================================================================ wltr3565's Tankentai Realistic Shadow v0.2 VX ================================================================================ This script is a mere eye candy, simply to make Tankentai's battler shadows true to the battlers' original sprites. But I'm very sure this is not perfect yet. This version, v0.1, is open to public to be tested for more improvements. Alas, this script is not perfect. I lack the experience to straightly configure bitmap drawing. I cannot make sprites slanted as in photoshop. This is the best that I can do in RGSS2. Please do give feedbacks for further improvements, especially bugs. Do free to use it for your own purpose. Just credit me, and watch out for bugs. ================================================================================ Features: - Easy to install; Just insert this below Tankentai. - Make shadows realistic, true to their real form. ================================================================================ Notes: - Realistic shadows means making the process heavier than simple shadows. It's not recommended yet for low-end PCs. - The shadows may be misplaced. You can configure the positions by adjusting the shadows' position in SBS Battler Configuration. - Don't ask about this script's compatibility between Kaduki Tankentai, Default Tankentai, etc. THIS IS OBVIOUSLY COMPATIBLE FOR ALL VERSIONS OF TANKENTAI!!! Except you have a script that do something with shadows. - It is recommeded to use detailed sprites (Not chibi style e.g. Kaduki's) with this script. - For now it only shades greatly for northern (from screen) source of light. - This is for RMVX version of Tankentai, and thus, for RMVX only. ================================================================================ =end module WLTR SHADE_PERSPECTIVE = 0.4 # Simply the shadow's vertical zoom, for perspective. end class Sprite_Battler < Sprite_Base def make_shadow @[member='Shadow'].dispose if @[member='Shadow'] != nil @battler_hue = @battler.battler_hue @[member='Shadow'] = Sprite.new(viewport) @[member='Shadow'].z = self.z - 4 @[member='Shadow'].visible = false # バトラーに当てられた影グラフィックを用意 @[member='Shadow'].bitmap = self.bitmap @[member='Shadow'].src_rect = self.src_rect @[member='Shadow']_height = @[member='Shadow'].bitmap.height # 影位置の微調整用インスタンス @[member='Shadow']_plus_x = @battler.shadow_plus[0] - @width / 2 @[member='Shadow']_plus_y = @battler.shadow_plus[1] # 更新 @[member='Shadow'].zoom_x = self.zoom_x @[member='Shadow'].zoom_y = WLTR::SHADE_PERSPECTIVE * self.zoom_y @[member='Shadow'].tone.set(-255, -255, -255) @[member='Shadow'].visible = false if @battler.shadow == "" update_shadow end def update_shadow @[member='Shadow'].opacity = 108 * self.opacity / 255 @[member='Shadow'].angle = 180 - self.angle @[member='Shadow'].src_rect = self.src_rect @[member='Shadow'].mirror = true @[member='Shadow'].ox = @width - self.ox @[member='Shadow'].oy = self.oy @[member='Shadow'].visible = false if @battler.shadow == "" @[member='Shadow'].zoom_x = self.zoom_x @[member='Shadow'].zoom_y = WLTR::SHADE_PERSPECTIVE * self.zoom_y @[member='Shadow'].x = @battler.position_x @[member='Shadow'].y = @battler.position_y + @[member='Shadow']_plus_y - (@jump_plus * 2) @[member='Shadow'].z = @battler.position_z - 4 end alias shadow_battler_anime battler_anime def battler_anime shadow_battler_anime return if @[member='Shadow'] == nil @[member='Shadow'].bitmap = self.bitmap @[member='Shadow'].src_rect = self.src_rect end end #=============================================================================== # # END OF SCRIPT # #===============================================================================