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.
|
|
| 2012-08-06, 08:35 | [ASK]Graphics Problem |
---|
aidilriski Senior
Posts : 643 Thanked : 2 Engine : Multi-Engine User Type : Mapper
| 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
|
| | | 2012-08-06, 08:51 | Re: [ASK]Graphics Problem |
---|
Lukas Senior
Posts : 618 Thanked : 22
| - 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 ??? |
| | | 2012-08-06, 08:59 | Re: [ASK]Graphics Problem |
---|
aidilriski Senior
Posts : 643 Thanked : 2 Engine : Multi-Engine User Type : Mapper
| - 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 |
| | | 2012-08-06, 09:03 | Re: [ASK]Graphics Problem |
---|
Lukas Senior
Posts : 618 Thanked : 22
| - 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!!! |
| | | 2012-08-06, 09:07 | Re: [ASK]Graphics Problem |
---|
aidilriski Senior
Posts : 643 Thanked : 2 Engine : Multi-Engine User Type : Mapper
| | | | 2012-08-06, 11:46 | Re: [ASK]Graphics Problem |
---|
aidilriski Senior
Posts : 643 Thanked : 2 Engine : Multi-Engine User Type : Mapper
| all, sya mau nanya lagi, klo di menu equipment, biar dia yg ada hanya weapon(tangan) sama aksesoris bagaimana? Mohon bantuannya |
| | | 2012-08-06, 12:05 | Re: [ASK]Graphics Problem |
---|
Lukas Senior
Posts : 618 Thanked : 22
| 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. |
| | | 2012-08-06, 12:13 | Re: [ASK]Graphics Problem |
---|
aidilriski Senior
Posts : 643 Thanked : 2 Engine : Multi-Engine User Type : Mapper
| @lukas, oh iya, makasih ya, nnti klo udah bisa saya ksih cendol deh biasa, males baca script |
| | | 2012-08-06, 12:21 | Re: [ASK]Graphics Problem |
---|
Lukas Senior
Posts : 618 Thanked : 22
| - aidilriski wrote:
- @lukas, oh iya, makasih ya, nnti klo udah bisa saya ksih cendol deh biasa, males baca script
saya juga baru tau tadi, ga pernah buka² vxa. cuman manfaatin ctrl + shift + f cendolnya yang banyak ya |
| | | | Re: [ASK]Graphics Problem |
---|
Sponsored content
| | | | Similar topics | |
|
Similar topics | |
| |
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 ]
|
|
|
|
|
|