|
| Sprite berjalan di menu v1.0 | |
|
+4reijubv chapiiy dnasman wltr3565 8 posters | Pengirim | Message |
---|
wltr3565 Senior
Posts : 870 Thanked : 28 Engine : RMVX Skill : Skilled Type : Scripter
Trophies
Awards:
| Subyek: Sprite berjalan di menu v1.0 2009-08-23, 11:36 | |
| Sprite berjalan di menu Versi: 1.0 Tipe: Menu eyecandy PengenalanBeberapa alasan untuk ngebuat script ini: 1. Ada requestor di RRR yang pengen menu kayak Kingdom Hearts 1 & 2, dan karakternya pada jalan. Ada sih kulihat di XP, tapi di VX... 2. Hanya pengen coba-coba. Hanya latihan untuk tahu gimana cara menggambar sprite. Kayaknya bisa jadi latihan bagus nih... FiturHanya gambarin sprite di menu kayak script yang gambarin sprite di luar sana. Hanya ada satu perbedaan: Spritenya dianimasikan/bergerak. Bisa juga milih gambar mana untuk ditunjukkin. ScreenshotsLihat spritenya nongol di menu, tapi yang saya lingkari adalah sprite utama. DemoNgapain? Scripts- Spoiler:
- Code:
-
=begin ================================================================================ Walking Sprites Menu v1.0 by wltr3565 ================================================================================ Many reasons built up for making this script. 1. I saw some script request to make Kingdom Hearts 1 & 2 styled menu screen, and the menu having the characters walking. I do saw it in XP, but in VX... 2. Just want to understand how the character sheets were drawn. It will be a good traning for me, somehow... ================================================================================ Script effect: Just showing character sprites in the menu like run-of-the-mill other menu redraw scripts. But only one difference: The sprites are walking. You can adjust what sprite to show too. ================================================================================ FAQ: Q: Somewhat this script is not working. Nothing happens. A: Please, put it below any party or menu-related scripts. Else, nothing will show. ================================================================================ Incompability: Hard to tell. But I do found this script not working with KGC's Large Party script. But the problem solved already. Put it below the large party script. ================================================================================ Install: Put it below any party related scripts and above main. ================================================================================ Terms of use: Credit wltr3565, and everything will be enough. ================================================================================ =end module WLTR #=============================================================================== #File name at the end of the file for using other sprite to show. Like _1 to #show Kaduki's normal idle stance instead just a walking sprite. #=============================================================================== SPRITE_ADJUST = "_1" end
#============================================================================== # ** Window_MenuStatus #------------------------------------------------------------------------------ # This window displays party member status on the menu screen. #==============================================================================
class Window_MenuStatus < Window_Selectable alias define initialize def initialize(x, y) @anim_index = 0 if @anim_index == nil @flip = false define(x,y) end #-------------------------------------------------------------------------- # * Refresh #-------------------------------------------------------------------------- alias sprite_drawing refresh def refresh sprite_drawing if @anim_index == 0 @anim_index = 1 @flip = false elsif @anim_index == 1 if @flip == false @anim_index = 2 else @anim_index = 0 end elsif @anim_index == 2 @anim_index = 1 @flip = true end
for actor in $game_party.members draw_actor_graphic_extreme(actor, 20, actor.index * 96 + 96, @anim_index) end end end
class Window_Base < Window def draw_actor_graphic_extreme(actor, x, y, anim) draw_character_extreme(actor.character_name, actor.character_index, x, y, anim) end def draw_character_extreme(character_name, character_index, x, y,anim) return if character_name == nil bitmap = Cache.character(character_name+WLTR::SPRITE_ADJUST) sign = character_name[/^[\!\$]./] if sign != nil and sign.include?('$') cw = bitmap.width / 3 ch = bitmap.height / 4 else cw = bitmap.width / 12 ch = bitmap.height / 8 end n = character_index a = anim src_rect = Rect.new((n%4*3+a)*cw, (n/4*4)*ch, cw, ch) self.contents.blt(x - cw / 2, y - ch, bitmap, src_rect) end end
class Scene_Menu < Scene_Base def wait(duration) for i in 0...duration Graphics.update Input.update @command_window.update @status_window.update if @command_window.active update_command_selection elsif @status_window.active update_actor_selection end end end alias new update def update new @status_window.refresh wait(10) end end
Sori kalo dalam inggris. males terjemahin. CreditsThanks
- Requestor dari RRR.
- Lagi, Gust. Aku lagi main A8 sih. Kulihat battlernya Edge dan Iris dianimasiin.
| |
| | | dnasman
Admin Kodok Ganteng Indonesia™
Posts : 1361 Thanked : 21 Engine : RMXP Skill : Intermediate Type : Event Designer
Trophies
Awards:
| Subyek: Re: Sprite berjalan di menu v1.0 2009-08-23, 12:01 | |
| Tadi abis nyobain, terus nemuin error. entah kenapa padahal belum aku utak-atik scriptnya kenapa tuh ya? thnx | |
| | | wltr3565 Senior
Posts : 870 Thanked : 28 Engine : RMVX Skill : Skilled Type : Scripter
Trophies
Awards:
| Subyek: Re: Sprite berjalan di menu v1.0 2009-08-23, 12:25 | |
| Kagak ada masalah tuh. Yang di rmvx.net juga bilang kagak ada masalah (kecuali lag ) Pake script apa aja? copy pastenya bener gak? Note: Kusaranin module SPRITE_ADJUST diisiin ini deh = "". Ini bakal gunain sprite jalan yang biasa. | |
| | | chapiiy Newbie
Posts : 6 Thanked : 0 Engine : RMVX
| Subyek: Re: Sprite berjalan di menu v1.0 2009-08-23, 17:41 | |
| saya juga sudah coba tapi menemuka problem dgn kk dnasman. thx | |
| | | reijubv Kai Runes
Posts : 1476 Thanked : 33 Engine : RMVX
Trophies
Awards:
| Subyek: Re: Sprite berjalan di menu v1.0 2009-08-23, 17:47 | |
| @dnas itu eror kalo script Scene_Base tidak ada (misal dipake di XP). | |
| | | vherolly Newbie
Posts : 5 Thanked : 0 Engine : RMVX
| Subyek: Re: Sprite berjalan di menu v1.0 2009-10-21, 20:55 | |
| | |
| | | Atsavin Advance
Posts : 490 Thanked : 11 Engine : Multi-Engine User Skill : Beginner Type : Writer
| Subyek: Re: Sprite berjalan di menu v1.0 2009-10-22, 13:24 | |
| kk/cc vherolly ini kan thread nya udah rada lama , baiknya jangan mereply thread ini karena ini termasuk necro post (klo gak salah) | |
| | | wltr3565 Senior
Posts : 870 Thanked : 28 Engine : RMVX Skill : Skilled Type : Scripter
Trophies
Awards:
| Subyek: Re: Sprite berjalan di menu v1.0 2009-10-26, 21:30 | |
| Sori. Yang lebih keupdate itu ada di RMVX.net.http://www.rpgmakervx.net/index.php?showtopic=19081 | |
| | | sickozee Newbie
Posts : 13 Thanked : 0 Engine : RMVX
| Subyek: Re: Sprite berjalan di menu v1.0 2010-04-21, 16:03 | |
| kk, script ini taro dimana???? maap kalo OOT | |
| | | eve Loli Mecha Mesum Musume
Posts : 1620 Thanked : 30 Engine : Other Skill : Beginner Type : Writer
Trophies
Awards:
| Subyek: Re: Sprite berjalan di menu v1.0 2010-04-21, 16:16 | |
| @^ selamat, anda barusaja melakukan necro post.,., tapi karena masih baru, eve pikir ga masalah (asal ga diulangi) sekaligus jawab pertanyaannya: - petunjuk scriptnya wrote:
- Install:
Put it below any party related scripts and above main. tuh kan ada., baca lagi scriptnya deh kalau ga ngerti itu bahasa indonesianya pa, kira2 artinya seperti gini: - petunjuk scriptnya translated by eve wrote:
- Install:
Simpan di atas semua script yang berhubungan sama parti dan di atas Main. | |
| | | Sponsored content
| Subyek: Re: Sprite berjalan di menu v1.0 | |
| |
| | | | Sprite berjalan di menu v1.0 | |
|
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 ]
|
|
|
|