wltr3565 Senior
Posts : 870 Thanked : 28 Engine : RMVX Skill : Skilled Type : Scripter
Trophies
Awards:
| Subyek: [XP][Beta]Tankentai Realistic Shadow 2012-08-09, 16:30 | |
| Tankentai Realistic Shadow [XP] Versi: 0.2 Tipe: Add-On PengenalanAku "publish" biar yang lain bisa ngetes scriptnya. Tolong beritahu kalo masih ada masalah. Silahkan gunakan. Lebih lanjut baca keterangan pada script. FiturBaca di script. ScreenshotsDari project timku. Ini di VX, tapi kerjanya sama lah DemoPasang dan coba aja. Susah amat? Scripts- Spoiler:
- Code:
-
=begin ================================================================================ wltr3565's Tankentai Realistic Shadow v0.2 XP ================================================================================ 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 RMXP version of Tankentai, and of course, RMXP only. ================================================================================ =end module WLTR SHADE_PERSPECTIVE = 0.4 # Simply the shadow's vertical zoom, for perspective. end
class Sprite_Battler < RPG::Sprite def make_shadow @shadow.dispose if @shadow != nil @battler_hue = @battler.battler_hue @shadow = Sprite.new(viewport) @shadow.z = self.z - 4 @shadow.visible = false # バトラーに当てられた影グラフィックを用意 @shadow.bitmap = self.bitmap @shadow.src_rect = self.src_rect @shadow_height = @shadow.bitmap.height # 影位置の微調整用インスタンス @shadow_plus_x = @battler.shadow_plus[0] - @width / 2 @shadow_plus_y = @battler.shadow_plus[1] # 更新 @shadow.zoom_x = self.zoom_x @shadow.zoom_y = WLTR::SHADE_PERSPECTIVE * self.zoom_y @shadow.tone.set(-255, -255, -255) @shadow.visible = false if @battler.shadow == "" update_shadow end def update_shadow @shadow.opacity = 108 * self.opacity / 255 @shadow.angle = 180 - self.angle @shadow.src_rect = self.src_rect @shadow.mirror = true @shadow.ox = @width - self.ox @shadow.oy = self.oy @shadow.visible = false if @battler.shadow == "" @shadow.zoom_x = self.zoom_x @shadow.zoom_y = WLTR::SHADE_PERSPECTIVE * self.zoom_y @shadow.x = @battler.position_x @shadow.y = @battler.position_y + @shadow_plus_y - (@jump_plus * 2) @shadow.z = @battler.position_z - 4 end alias shadow_battler_anime battler_anime def battler_anime shadow_battler_anime return if @shadow == nil @shadow.bitmap = self.bitmap @shadow.src_rect = self.src_rect end end #=============================================================================== # # END OF SCRIPT # #===============================================================================
Kalo ada yang berbaik hati untuk memportir buat Tankentai VXA akan sangat dihargai.
Terakhir diubah oleh wltr3565 tanggal 2012-08-09, 17:24, total 1 kali diubah | |
|
aidilriski Senior
Posts : 643 Thanked : 2 Engine : Multi-Engine User Type : Mapper
| Subyek: Re: [XP][Beta]Tankentai Realistic Shadow 2012-08-09, 16:36 | |
| Wah, another good script, bisa jdi koleksi nih... *Downloaded | |
|
arls Advance
Posts : 412 Thanked : 3 Engine : RMVX Ace Skill : Very Beginner Type : Mapper
Trophies
Awards: | Subyek: Re: [XP][Beta]Tankentai Realistic Shadow 2012-08-09, 16:44 | |
| @all: ada yg mau sediain demo nya gk? Mobmod saya... | |
|
raven_skeith Newbie
Posts : 31 Thanked : 1 Engine : RMVX Ace Skill : Very Beginner Type : Developer
| Subyek: Re: [XP][Beta]Tankentai Realistic Shadow 2012-12-29, 16:46 | |
| boleh nih dikasih demonya... rada gapande cara masukkin scriptnya | |
|
Sponsored content
| Subyek: Re: [XP][Beta]Tankentai Realistic Shadow | |
| |
|