|
| [ASK]Graphics Problem | |
| | Pengirim | Message |
---|
aidilriski Senior
Posts : 643 Thanked : 2 Engine : Multi-Engine User Type : Mapper
| Subyek: [ASK]Graphics Problem 2012-08-06, 08:35 | |
| hai member rmid... saya mau nanya, kan sya baru buat skrip buat menu, yang ngikutin cara-cara dari scriptnya Momofumi, Animated Title Screen Tapi, ini buat menunya. Pas udah selesai, saya test, masuk ke menu, udah bagus, udah pke gambar, tpi kok gak bisa di klik kanan, gk ganti juga gambarnya? Dimanakah kesalahan saya? Mohon bantuannya. Ini skripnya (Maaf klo merusak mata, bru belajar ) - Code:
-
class Window_MenuCommand < Window_Command def make_command_list add_main_commands add_original_commands add_game_end_command add_save_command end def add_main_commands add_command(Vocab::item, :item, main_commands_enabled) add_command(Vocab::equip, :equip, main_commands_enabled) end def add_original_commands end end
module MENU PICTURES = { :logo => "SeaSides_menulogo", } POSITION = { :menu_x => 172, #Default :menu_y => 108, #Default :gold_x => 0, #Default :gold_y => 384, #Default :logo_x => 227, #Default :logo_y => 313, #Default } end
class Scene_Menu < Scene_MenuBase def initialize @index_anim = 0 @index_point = 0 end def start super create_gold_window create_command create_logo create_command_window end def create_logo @logo = Sprite.new @logo.bitmap = Cache.picture(MENU::PICTURES[:logo]) @logo.x = MENU::POSITION[:logo_x] @logo.y = MENU::POSITION[:logo_y] end def create_command @barang = Sprite.new @men_index = Sprite.new @men_index.bitmap = Cache.picture("menu_index_barang") @men_index.x = MENU::POSITION[:menu_x] @men_index.y = MENU::POSITION[:menu_y] @men_index.z = 2 end def update super command_update @men_index.update @logo.update if Input.trigger?(:RIGHT) Sound.play_cursor case @command_window.index when 0 @index_anim = 0 @index_point = 1 @command_window.index = 1 when 1 @index_anim = 0 @index_point = 2 @command_window.index = 2 when 2 @index_anim = 0 @index_point = 3 @command_window.index = 3 when 3 @index_anim = 0 @index_point = 4 @command_window.index = 0 end end if Input.trigger?(:LEFT) Sound.play_cursor case @command_window.index when 0 @index_anim = 0 @index_point = 5 @command_window.index = 3 when 1 @index_anim = 0 @index_point = 6 @command_window.index = 0 when 2 @index_anim = 0 @index_point = 7 @command_window.index = 1 when 3 @index_anim = 0 @index_point = 8 @command_window.index = 2 end end if Input.trigger?(:UP) RPG::SE.stop end if Input.trigger?(:DOWN) RPG::SE.stop end end def command_update if @index_point == 1 if @index_anim != 1 @index_anim += 1 case @index_anim when 1 @men_index.bitmap == Cache.picture("menu_index_peralatan") end end end if @index_point == 2 if @index_anim != 1 @index_anim += 1 case @index_anim when 1 @men_index.bitmap == Cache.picture("menu_index_keluar") end end end if @index_point == 3 if @index_anim != 1 @index_anim += 1 case @index_anim when 1 @men_index.bitmap == Cache.picture("menu_index_buku") end end end if @index_point == 4 if @index_anim != 1 @index_anim += 1 case @index_anim when 1 @men_index.bitmap == Cache.picture("menu_index_barang") end end end if @index_point == 5 if @index_anim != 1 @index_anim += 1 case @index_anim when 1 @men_index.bitmap == Cache.picture("menu_index_buku") end end end if @index_point == 6 if @index_anim != 1 @index_anim += 1 case @index_anim when 1 @men_index.bitmap == Cache.picture("menu_index_keluar") end end end if @index_point == 7 if @index_anim != 1 @index_anim += 1 case @index_anim when 1 @men_index.bitmap == Cache.picture("menu_index_peralatan") end end end if @index_point == 8 if @index_anim != 1 @index_anim += 1 case @index_anim when 1 @men_index.bitmap == Cache.picture("menu_index_barang") end end end end def create_command_window @command_window = Window_MenuCommand.new @command_window.visible = false @command_window.set_handler(:item, method(:command_item)) @command_window.set_handler(:equip, method(:command_equip)) @command_window.set_handler(:game_end, method(:command_game_end)) @command_window.set_handler(:save, method(:command_save)) @command_window.set_handler(:cancel, method(:return_scene)) end def command_item SceneManager.call(Scene_Item) end def command_equip SceneManager.call(Scene_Equip) end def command_save SceneManager.call(Scene_Save) end def command_game_end SceneManager.call(Scene_End) end def create_gold_window @gold_window = Window_Gold.new @gold_window.x = MENU::POSITION[:gold_x] @gold_window.y = MENU::POSITION[:gold_y] @gold_window.arrows_visible = false @gold_window.opacity = 0 end end
| |
| | | Lukas Senior
Posts : 618 Thanked : 22
| Subyek: Re: [ASK]Graphics Problem 2012-08-06, 08:51 | |
| - Code:
-
@men_index.bitmap == == << bukan untuk mengganti tapi untuk persamaan. (hasil true/false) saya ga ngerti ini : - Code:
-
if @index_point == 1 if @index_anim != 1 @index_anim += 1 case @index_anim when 1 @men_index.bitmap == Cache.picture("menu_index_peralatan") end end end knapa ga di set ganti bitmap saat input aja ??? | |
| | | aidilriski Senior
Posts : 643 Thanked : 2 Engine : Multi-Engine User Type : Mapper
| Subyek: Re: [ASK]Graphics Problem 2012-08-06, 08:59 | |
| - Lukas wrote:
-
- Code:
-
@men_index.bitmap == == << bukan untuk mengganti tapi untuk persamaan. (hasil true/false) Oh iya Saya lupa, udah solved, trit yg aneh thank you om Lukas - Quote :
- saya ga ngerti ini :
- Code:
-
if @index_point == 1 if @index_anim != 1 @index_anim += 1 case @index_anim when 1 @men_index.bitmap == Cache.picture("menu_index_peralatan") end end end knapa ga di set ganti bitmap saat input aja ???
Yg itu sya cman ngikutin skrip nya momofumi | |
| | | Lukas Senior
Posts : 618 Thanked : 22
| Subyek: Re: [ASK]Graphics Problem 2012-08-06, 09:03 | |
| - aidilriski wrote:
- Quote :
- saya ga ngerti ini :
- Code:
-
if @index_point == 1 if @index_anim != 1 @index_anim += 1 case @index_anim when 1 @men_index.bitmap == Cache.picture("menu_index_peralatan") end end end knapa ga di set ganti bitmap saat input aja ???
Yg itu sya cman ngikutin skrip nya momofumi
hoho.. saya blom liat scriptnya om Momo mungkin masuk akal karna dia kan buat animasi apa ini untuk animasi ? tp terserah sih Go Go Go!!! | |
| | | aidilriski Senior
Posts : 643 Thanked : 2 Engine : Multi-Engine User Type : Mapper
| Subyek: Re: [ASK]Graphics Problem 2012-08-06, 09:07 | |
| | |
| | | aidilriski Senior
Posts : 643 Thanked : 2 Engine : Multi-Engine User Type : Mapper
| Subyek: Re: [ASK]Graphics Problem 2012-08-06, 11:46 | |
| all, sya mau nanya lagi, klo di menu equipment, biar dia yg ada hanya weapon(tangan) sama aksesoris bagaimana? Mohon bantuannya | |
| | | Lukas Senior
Posts : 618 Thanked : 22
| Subyek: Re: [ASK]Graphics Problem 2012-08-06, 12:05 | |
| VXA gampang loh.. di class Game_Actor - Code:
-
def equip_slots return [0,0,2,3,4] if dual_wield? # 二刀流 return [0,1,2,3,4] # 通常 end nah itu arraynya tinggal di mainin, misal weapon itu 0 dan aksesoris itu 4. tinggal buat : return [0,4] and done. | |
| | | aidilriski Senior
Posts : 643 Thanked : 2 Engine : Multi-Engine User Type : Mapper
| Subyek: Re: [ASK]Graphics Problem 2012-08-06, 12:13 | |
| @lukas, oh iya, makasih ya, nnti klo udah bisa saya ksih cendol deh biasa, males baca script | |
| | | Lukas Senior
Posts : 618 Thanked : 22
| Subyek: Re: [ASK]Graphics Problem 2012-08-06, 12:21 | |
| | |
| | | Sponsored content
| Subyek: Re: [ASK]Graphics Problem | |
| |
| | | | [ASK]Graphics Problem | |
|
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 ]
|
|
|
|