|
| Mengubah Tampilan Daftar Party | |
|
+14Rohriant mbahnoname danny_warfield jeePunk kryuchekov SPVMasterNite kazeki ILeonheartz Lana42 Randomasta bradhawk fjakf dnasman mail++ 18 posters | Pengirim | Message |
---|
mail++ Newbie
Posts : 22 Thanked : 0 Engine : RMVX
| Subyek: Mengubah Tampilan Daftar Party 2009-02-21, 00:01 | |
| Meskipun aku masih belajar, nggak ada salahnya ya bagi-bagi tutorial.. Bosan tampilan menu di game buatanmu seperti ini : Gimana kalo diubah seperti ini: Gampang! Pertama definisikan method draw_actor_battlegraphic di class Window_Base. Method untuk menampilkan Battle Graphic ini akan kita panggil di class Window_MenuStatus nanti. Method ini mempunyai 4 parameter yaitu actor:karakter, x:posisi dalam sumbu x, y:posisi dalam sumbu y, dan opacity:transparansi yang nilai defaultnya 255 (tidak transparan). Method-nya seperti ini: - Code:
-
def draw_actor_battlegraphic(actor, x, y, opacity = 255) bitmap = RPG::Cache.battler(actor.battler_name, actor.battler_hue) src_rect = Rect.new(0, 0, 300, 300) self.contents.blt(x, y, bitmap, src_rect, opacity) end Lalu ubah method refresh yang ada di class Window_Base yang semula seperti ini: - Code:
-
def refresh self.contents.clear @item_max = $game_party.actors.size for i in 0…$game_party.actors.size x = 64 y = i * 116 actor = $game_party.actors[i] draw_actor_graphic(actor, x - 40, y + 80) draw_actor_name(actor, x, y) draw_actor_class(actor, x + 144, y) draw_actor_level(actor, x, y + 32) draw_actor_state(actor, x + 90, y + 32) draw_actor_exp(actor, x, y + 64) draw_actor_hp(actor, x + 236, y + 32) draw_actor_sp(actor, x + 236, y + 64) end end menjadi seperti ini: - Code:
-
def refresh self.contents.clear @item_max = $game_party.actors.size for i in 0…$game_party.actors.size case i when 0 x = 64 y = i * 116 actor = $game_party.actors[i] draw_actor_battlegraphic(actor, x - 60, y-3,150) draw_actor_name(actor, x+50, y) draw_actor_class(actor, x + 140, y) draw_actor_level(actor, x+50, y + 32) draw_actor_state(actor, x + 140, y + 32) draw_actor_exp(actor, x+50, y + 64) draw_actor_hp(actor, x + 236, y + 32) draw_actor_sp(actor, x + 236, y + 64) when 1 x = -30 y = i * 116 actor = $game_party.actors[i] draw_actor_battlegraphic(actor, 310, y-40,150) draw_actor_name(actor, x+50, y) draw_actor_class(actor, x+140, y) draw_actor_level(actor, x+50, y + 32) draw_actor_state(actor, x+140, y + 32) draw_actor_exp(actor, x+50, y + 64) draw_actor_hp(actor, x+236, y + 32) draw_actor_sp(actor, x+236, y + 64) when 2 x = 64 y = i * 116 actor = $game_party.actors[i] draw_actor_battlegraphic(actor, x - 60, y-35,150) draw_actor_name(actor, x+50, y) draw_actor_class(actor, x + 140, y) draw_actor_level(actor, x+50, y + 32) draw_actor_state(actor, x + 140, y + 32) draw_actor_exp(actor, x+50, y + 64) draw_actor_hp(actor, x + 236, y + 32) draw_actor_sp(actor, x + 236, y + 64) when 3 x = -30 y = i * 116 actor = $game_party.actors[i] draw_actor_battlegraphic(actor, 310, y-50,150) draw_actor_name(actor, x+50, y) draw_actor_class(actor, x+140, y) draw_actor_level(actor, x+50, y + 32) draw_actor_state(actor, x+140, y + 32) draw_actor_exp(actor, x+50, y + 64) draw_actor_hp(actor, x+236, y + 32) draw_actor_sp(actor, x+236, y + 64) end end end Method di atas adalah menampilkan karakter-karakter yang ada di party. Di sini aku definisikan posisinya satu-satu karena posisi setiap karakter bisa berbeda-beda tergantung berada pada urutan party ke berapa. Kamu juga dapat menggunakan method draw_battle_graphic diatas untuk menampilkan Battle Graphic di Window_Status dan Window_Skill. Have fun! edited by dnasman: REP+20
Terakhir diubah oleh mail++ tanggal 2009-03-01, 12:20, total 1 kali diubah | |
| | | dnasman
Admin Kodok Ganteng Indonesia™
Posts : 1361 Thanked : 21 Engine : RMXP Skill : Intermediate Type : Event Designer
Trophies
Awards:
| Subyek: Re: Mengubah Tampilan Daftar Party 2009-02-21, 06:03 | |
| wow! nice tutorial! kira-kiar ini bisa diterapkan pada VX juga, ga? btw om ngerti RGSS? RGSS2 ngerti juga ga? | |
| | | fjakf
Banned by Admin
Posts : 217 Thanked : 1 Engine : Other Type : Developer
| Subyek: Re: Mengubah Tampilan Daftar Party 2009-02-21, 11:03 | |
| Oke, akhrinya warna font codenya telah kuubah, supaya enak baca . And Good Job! Mari berbagi ilmu | |
| | | mail++ Newbie
Posts : 22 Thanked : 0 Engine : RMVX
| Subyek: Re: Mengubah Tampilan Daftar Party 2009-02-21, 21:59 | |
| @dnasman : kalo nggak salah di vx ngga pake battle graphic.
@fjakf : thanx! | |
| | | bradhawk Admin
Posts : 637 Thanked : 8 Skill : Beginner
| Subyek: Re: Mengubah Tampilan Daftar Party 2009-02-22, 11:16 | |
| sep, good script, dan dah di moved ke RPXP Script bag. RGSS Database... | |
| | | Randomasta Senior
Posts : 661 Thanked : 6 Engine : RMVX
| Subyek: Re: Mengubah Tampilan Daftar Party 2009-02-26, 18:19 | |
| | |
| | | Lana42 Novice
Posts : 100 Thanked : 3 Engine : Multi-Engine User Skill : Intermediate Type : Composer
| Subyek: ngga muncul 2009-02-27, 16:13 | |
| Iya, gambarnya ngga muncul... | |
| | | dnasman
Admin Kodok Ganteng Indonesia™
Posts : 1361 Thanked : 21 Engine : RMXP Skill : Intermediate Type : Event Designer
Trophies
Awards:
| Subyek: Re: Mengubah Tampilan Daftar Party 2009-02-27, 16:15 | |
| utk om mail++, jika tidak keberatan coba gambarnya di upload ke photobucket or tinypic (or yg image hosting yang lain)
terima kasih! | |
| | | mail++ Newbie
Posts : 22 Thanked : 0 Engine : RMVX
| Subyek: Re: Mengubah Tampilan Daftar Party 2009-03-01, 12:23 | |
| sori, dah tak perbaiki, klo masih nggak muncul berarti masalah ada pada komputermu | |
| | | Lana42 Novice
Posts : 100 Thanked : 3 Engine : Multi-Engine User Skill : Intermediate Type : Composer
| Subyek: Re: Mengubah Tampilan Daftar Party 2009-03-01, 12:58 | |
| Iya udah muncul gambarnya | |
| | | ILeonheartz Newbie
Posts : 10 Thanked : 0 Engine : RMVX
| Subyek: Re: Mengubah Tampilan Daftar Party 2009-03-05, 18:55 | |
| - mail++ wrote:
- @dnasman :
kalo nggak salah di vx ngga pake battle graphic.
@fjakf : thanx! bisa Di VX bisa pake battle graphic. mau mirip XP default atau sprite battleset juga bisa. | |
| | | mail++ Newbie
Posts : 22 Thanked : 0 Engine : RMVX
| Subyek: Re: Mengubah Tampilan Daftar Party 2009-03-08, 00:45 | |
| - Quote :
- bisa
Di VX bisa pake battle graphic. mau mirip XP default atau sprite battleset juga bisa. ya memang bisa, maksudku script di atas belum tentu bisa langsung dipakai di RMVX | |
| | | kazeki Novice
Posts : 239 Thanked : 1 Engine : RMVX
| Subyek: Re: Mengubah Tampilan Daftar Party 2009-03-14, 20:15 | |
| kalo warna background menunya diganti jadi warna lain bs g kk? | |
| | | SPVMasterNite Novice
Posts : 184 Thanked : 0 Engine : RMVX
| Subyek: Re: Mengubah Tampilan Daftar Party 2009-03-14, 21:17 | |
| - kazeki wrote:
- kalo warna background menunya diganti jadi warna lain bs g kk?
Kalo Backgroundnya ga usah pake script... edit aja gambar yang ada di folder windows ato apa gitu... | |
| | | kryuchekov Newbie
Posts : 17 Thanked : 0 Engine : RMXP Skill : Beginner Type : Artist
| Subyek: Re: Mengubah Tampilan Daftar Party 2009-04-14, 22:42 | |
| Om, klo digenti dengan gambar face yg kaya di VX bisa kaga ne?
wa butuhny, pas buka status karakter, gmn caranya biar yg muncul bukan character, tapi face/wajahnya, wa udah coba buat folder facenya, cuman wat masukin ke scriptnya gmn ye? bingung wa soalna rmxpku ver JP T_T
bantuin pliiss~ | |
| | | jeePunk Novice
Posts : 276 Thanked : 0 Engine : RMVX
| Subyek: Re: Mengubah Tampilan Daftar Party 2009-05-02, 15:54 | |
| | |
| | | danny_warfield Advance
Posts : 561 Thanked : 2 Engine : RMVX Ace Skill : Beginner Type : Artist
| Subyek: Re: Mengubah Tampilan Daftar Party 2009-05-03, 05:00 | |
| | |
| | | jeePunk Novice
Posts : 276 Thanked : 0 Engine : RMVX
| Subyek: Re: Mengubah Tampilan Daftar Party 2009-05-04, 13:42 | |
| @danny_warfield wduhh sgitu gmpangnya.. maklum Very Beginner tq kk | |
| | | mbahnoname Senior
Posts : 670 Thanked : 0 Engine : RMVX Skill : Very Beginner Type : Mapper
Trophies
Awards:
| Subyek: Re: Mengubah Tampilan Daftar Party 2009-06-21, 14:59 | |
| Ahh kk hebat.....keren aibizz......udah ku praktekin kok!!! | |
| | | Rohriant Newbie
Posts : 57 Thanked : 0 Engine : RMVX
| Subyek: Re: Mengubah Tampilan Daftar Party 2009-07-10, 19:31 | |
| hebat! | |
| | | davidjie Novice
Posts : 101 Thanked : 0 Engine : RMVX
| Subyek: Re: Mengubah Tampilan Daftar Party 2009-09-02, 08:48 | |
| [img][/img] Lihat aku mendapatkan error | |
| | | Notorius Veteran
Posts : 1408 Thanked : 0 Engine : RMVX Skill : Intermediate Type : Event Designer
| Subyek: Re: Mengubah Tampilan Daftar Party 2009-09-02, 08:54 | |
| Eh, melihat post Rohriant yang ada pada bulan Juli, apakah post diatas itu ? @davidjie: Itumah mungkin kamu salah ketik / gak sengaja keketik, en, kalo mau ngepost gambar gede, tolong di Spoiler. | |
| | | blacklight Newbie
Posts : 6 Thanked : 0 Engine : RMVX Skill : Very Beginner Type : Mapper
| Subyek: Re: Mengubah Tampilan Daftar Party 2010-06-01, 23:54 | |
| ada yang untuk VX gak bang? aku oakai VX nih, dan pengen dirubah menunya.. terima kasih..(newbie) | |
| | | Yaden Legendary
Posts : 2056 Thanked : 17 Engine : RMVX Skill : Very Beginner Type : Artist
| Subyek: Re: Mengubah Tampilan Daftar Party 2010-06-02, 00:01 | |
| @^^ maaf, anda telah melakukan necropost.. jangan tanya necropost itu apa.. karena itu sudah tercantum di boardrules forumini. jika anda masih tetap melakukan pelanggaran.. anda akan kami tindak lanjuti.. (kok galak ya??) | |
| | | Sponsored content
| Subyek: Re: Mengubah Tampilan Daftar Party | |
| |
| | | | Mengubah Tampilan Daftar Party | |
|
Similar topics | |
|
| Permissions in this forum: | Anda tidak dapat menjawab topik
| |
| |
| Latest topics | » [Web Novel] Gloria Infidelis by LightNightKnight 2016-11-17, 21:27
» [Announcement] Forum baru untuk RMID by TheoAllen 2016-08-25, 16:39
» Where I'm Wrong ? by ReydVires 2016-07-24, 16:10
» flakeheartnet's Resources part III by flakeheartnet 2016-07-08, 14:30
» Keira's Art Warehouse by KeiraBlaze 2016-06-28, 19:27
» Theo Core Time System + Bingung by Lockin 2016-06-27, 16:24
» Error Script, Maybe ? by Lockin 2016-06-27, 16:20
» Nusaimoe @ RMID Lounge by Jihad Bagas 2016-06-21, 05:02
» Call Random Battle by Lockin 2016-06-15, 17:04
» Flakeheartnet Resources Part II [come back gift] by flakeheartnet 2016-06-07, 15:51
|
Statistics
|
Members: [ 4947 ]
Topics: [ 8258 ]
Posts: [ 112606 ]
Newest member: [ https://rmid.forumotion.net/u4968 ]
|
|
|
|