Per 2016, RMID pindah ke RMID Discord (Invite link dihapus untuk mencegah spambot -Theo @ 2019). Posting sudah tidak bisa dilakukan lagi.
Mohon maaf atas ketidaknyamanannya dan mohon kerjasamanya.
|
|
| [VXAce] Tankenai Realistic Shadow | |
| 2012-09-20, 12:42 | [VXAce] Tankenai Realistic Shadow |
---|
wltr3565 Senior
Posts : 870 Thanked : 28 Engine : RMVX Skill : Skilled Type : Scripter
Awards:
| Tankentai Realistic Shadow [VXAce] Versi: 0.3 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. Lumayan dengan kamera. DemoPasang dan coba aja. Susah amat? Scripts- Spoiler:
- Code:
-
=begin ================================================================================ wltr3565's Tankentai Realistic Shadow v0.3 VX Ace ================================================================================ 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 RGSS3. 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 Ace version of Tankentai, and thus, for RMVX Ace only. Not to mention that enu remade Tankentai for Ace from scratch! ================================================================================ Checklist: - Note to set SHADOW at SBS General Settings to true. - def shadow of actors and enemies to be placed in this script for more convinient configuration =end module WLTR SHADE_PERSPECTIVE = 0.4 # Simply the shadow's vertical zoom, for perspective. end
class SideView def shadow_plus # To adjust each battlers' shadow position, which is non- # existent in Tankentai Ace. case id when 1 # Actor ID 1 return [ 0, 9] # [ X, Y] when -1 # Enemy ID 1. Enemy IDs are marked with minus. return [ 0, 8] end # Default shadow positioning for all unassigned Enemy IDs. return [ 0, 12] end end
class Sprite_Battler < Sprite_Base def create_shadow reset_shadow return if @battler.sv.shadow == false @shadow = Sprite.new(viewport) if @shadow == nil @shadow.bitmap = self.bitmap @shadow.src_rect = self.src_rect @shadow.ox = @battler.sv.cw - self.ox @shadow.oy = self.oy @shadow.zoom_x = $sv_camera.zoom @shadow.zoom_y = $sv_camera.zoom * WLTR::SHADE_PERSPECTIVE @shadow.tone.set(-255, -255, -255) update_shadow end def update_shadow @shadow.visible = @battler.sv.shadow_visible @shadow.opacity = 108 * @battler.sv.opacity / 255 if @battler.sv.opacity_data[3] @shadow.opacity = 108 * self.opacity / 255 if !@battler.sv.opacity_data[3] @shadow.ox = @battler.sv.cw - self.ox @shadow.oy = self.oy @shadow.mirror = !self.mirror @shadow.angle = 180 - self.angle @shadow.x = @real_x - $sv_camera.x + @battler.sv.shadow_plus[0] @shadow.y = (@battler.sv.y - @battler.sv.c)/ 100 - $sv_camera.y + @battler.sv.shadow_plus[1] @shadow.z = @battler.sv.z - 10 @shadow.zoom_x = $sv_camera.zoom @shadow.zoom_y = $sv_camera.zoom * WLTR::SHADE_PERSPECTIVE @shadow.x += $sv_camera.sx / 100 @shadow.y += $sv_camera.sy / 100 @shadow.x *= $sv_camera.zoom @shadow.y *= $sv_camera.zoom end
def update_bitmap_actor if @battler.character_name != @battler_name or @battler.character_index != @battler_index @battler_name = @battler.character_name @battler_index = @battler.character_index @battler_graphic_file_index = @battler.sv.graphic_file_index @graphic_mirror_flag = @battler.sv.graphic_mirror_flag self.bitmap = Cache.character(@battler_name + @battler_graphic_file_index) @battler.sv.setup(self.bitmap.width, self.bitmap.height, @battler_id != @battler.id) create_shadow init_visibility @battler_id = @battler.id @shadow.bitmap = self.bitmap if @shadow != nil end end
def update_src_rect return if @battler.sv.collapse if @battler_graphic_file_index != @battler.sv.graphic_file_index @battler_graphic_file_index = @battler.sv.graphic_file_index self.bitmap = Cache.character(@battler_name + @battler_graphic_file_index) if @battler.actor? self.bitmap = Cache.battler(@battler_name + @battler_graphic_file_index, @battler_hue) if !@battler.actor? @battler.sv.set_graphics(self.bitmap.width, self.bitmap.height) @shadow.bitmap = self.bitmap if @shadow != nil end anime_off if @battler.sv.anime_off self.src_rect.set(@battler.sv.sx, @battler.sv.sy, @battler.sv.cw, @battler.sv.ch) self.opacity = @battler.sv.opacity if @battler_visible @shadow.src_rect = self.src_rect if @shadow != nil set_process_timing(@battler.sv.timing) if @battler && @battler.sv.timing != [] end end #=============================================================================== # # END OF SCRIPT # #===============================================================================
Terakhir diubah oleh wltr3565 tanggal 2012-09-26, 21:00, total 1 kali diubah |
| | | 2012-09-20, 13:18 | Re: [VXAce] Tankenai Realistic Shadow |
---|
Deenos Advance
Posts : 487 Thanked : 7 Engine : RMVX Ace Skill : Skilled Type : Databaser
Awards:
| makasih banget... udah convert nih script aku sangat menghargai apa yang kau lakukan.... WOWOWOOWOWOOW |
| | | 2012-09-26, 09:48 | Re: [VXAce] Tankenai Realistic Shadow |
---|
Mynamenicholas Novice
Posts : 149 Thanked : 0 Engine : RMVX Ace Skill : Intermediate Type : Writer
| Bang gan, itu bisa dibuat terbalik kagak? scriptnya ga comptible sama enemies yg mirror |
| | | 2012-09-26, 14:10 | Re: [VXAce] Tankenai Realistic Shadow |
---|
wltr3565 Senior
Posts : 870 Thanked : 28 Engine : RMVX Skill : Skilled Type : Scripter
Awards:
| Bisa dimirror dulu gak file gambarnya? Aku belum support enemy yang dimirror |
| | | 2012-09-26, 18:47 | Re: [VXAce] Tankenai Realistic Shadow |
---|
Mynamenicholas Novice
Posts : 149 Thanked : 0 Engine : RMVX Ace Skill : Intermediate Type : Writer
| Oke kalo begitu, semoga scriptnya bisa sukses |
| | | 2012-09-26, 21:01 | Re: [VXAce] Tankenai Realistic Shadow |
---|
wltr3565 Senior
Posts : 870 Thanked : 28 Engine : RMVX Skill : Skilled Type : Scripter
Awards:
| Oke. sudah diupdate. Jujur, Tankentai ngetroll |
| | | 2012-09-27, 00:10 | Re: [VXAce] Tankenai Realistic Shadow |
---|
Kuro Ethernite The Creator
Posts : 1631 Thanked : 24 Engine : RMVX Ace Skill : Masterful Type : Jack of All Trades
Awards:
| Realistic shadow? Serasa kurang guna banget menurut q.... Ga bakal ada perbedaan yang mendalam dari sudut pandang sang pemain semenjak bayangan kurang begitu dinilai... Dan lagi beberapa battle tidak selalu terjadi di bawah arah cahaya yang sama.... |
| | | 2012-09-27, 16:29 | Re: [VXAce] Tankenai Realistic Shadow |
---|
Ameron ♚ Leader of Ameron™ ♚
Posts : 440 Thanked : 3 Engine : RMVX Skill : Intermediate Type : Developer
Awards:
| @^ Kalau tidak berguna , gak usah repot-repot buat ngepost. lagipula Tankentaiikan sudut pandangnya itu2 aja, dan gak ada perubahan sama posisi kamera angelnya. Dan pasti playernya beranggapan itu posisi player tatap menghadap Barat. Anyway nice script Bisa jadi resource buat sy gunakan juga. Kalau bayangan pake lingkaran Default rasanya gk real aja. Ini membuat Fitur grafik terasa lebih menarik |
| | | 2012-12-30, 11:32 | Re: [VXAce] Tankenai Realistic Shadow |
---|
raven_skeith Newbie
Posts : 31 Thanked : 1 Engine : RMVX Ace Skill : Very Beginner Type : Developer
| Nice work, shadow bagi sebagian orang nambah sensasi nice script |
| | | | Re: [VXAce] Tankenai Realistic Shadow |
---|
Sponsored content
| | | | | [VXAce] Tankenai Realistic Shadow | |
|
Halaman 1 dari 1 | |
| Permissions in this forum: | Anda tidak dapat menjawab topik
| |
| |
Latest 10 Topics | [Web Novel] Gloria Infidelis 2016-11-17, 21:27 by LightNightKnight
[Announcement] Forum baru untuk RMID 2016-08-25, 16:39 by TheoAllen
Where I'm Wrong ? 2016-07-24, 16:10 by ReydVires
flakeheartnet's Resources part III 2016-07-08, 14:30 by flakeheartnet
Keira's Art Warehouse 2016-06-28, 19:27 by KeiraBlaze
Theo Core Time System + Bingung 2016-06-27, 16:24 by Lockin
Error Script, Maybe ? 2016-06-27, 16:20 by Lockin
Nusaimoe @ RMID Lounge 2016-06-21, 05:02 by Jihad Bagas
Call Random Battle 2016-06-15, 17:04 by Lockin
Flakeheartnet Resources Part II [come back gift] 2016-06-07, 15:51 by flakeheartnet
|
Statistics
|
Members: [ 4947 ]
Topics: [ 8258 ]
Posts: [ 112606 ]
Newest member: [ https://rmid.forumotion.net/u4968 ]
|
|
|
|
|
|