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.

Share | 
 

 [ASK]Graphics Problem

Topik sebelumnya Topik selanjutnya Go down 
[ASK]Graphics Problem Empty2012-08-06, 08:35
Post[ASK]Graphics Problem
#1
aidilriski 
Senior
Senior
aidilriski

Level 5
Posts : 643
Thanked : 2
Engine : Multi-Engine User
Type : Mapper

[ASK]Graphics Problem Vide
hai member rmid... saya mau nanya, kan sya baru buat skrip buat menu, yang ngikutin cara-cara dari scriptnya Momofumi, Animated Title Screen :kabur: 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 :D :kabur: )
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
[ASK]Graphics Problem Empty2012-08-06, 08:51
PostRe: [ASK]Graphics Problem
#2
Lukas 
Senior
Senior
avatar

Level 5
Posts : 618
Thanked : 22

[ASK]Graphics Problem Vide
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 ???
[ASK]Graphics Problem Empty2012-08-06, 08:59
PostRe: [ASK]Graphics Problem
#3
aidilriski 
Senior
Senior
aidilriski

Level 5
Posts : 643
Thanked : 2
Engine : Multi-Engine User
Type : Mapper

[ASK]Graphics Problem Vide
Lukas wrote:
Code:
@men_index.bitmap ==
== << bukan untuk mengganti tapi untuk persamaan. (hasil true/false)
Oh iya :doh: :siksa: Saya lupa, udah solved, trit yg aneh :kabur: thank you om Lukas :kabur:

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 :kabur:
[ASK]Graphics Problem Empty2012-08-06, 09:03
PostRe: [ASK]Graphics Problem
#4
Lukas 
Senior
Senior
avatar

Level 5
Posts : 618
Thanked : 22

[ASK]Graphics Problem Vide
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 :kabur:
hoho.. saya blom liat scriptnya om Momo :ngacay2:
mungkin masuk akal karna dia kan buat animasi :ngacay2:
apa ini untuk animasi ?
tp terserah sih :ngacay2:

Go Go Go!!!
[ASK]Graphics Problem Empty2012-08-06, 09:07
PostRe: [ASK]Graphics Problem
#5
aidilriski 
Senior
Senior
aidilriski

Level 5
Posts : 643
Thanked : 2
Engine : Multi-Engine User
Type : Mapper

[ASK]Graphics Problem Vide
Lukas wrote:
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 :kabur:
hoho.. saya blom liat scriptnya om Momo :ngacay2:
mungkin masuk akal karna dia kan buat animasi :ngacay2:
apa ini untuk animasi ?
tp terserah sih :ngacay2:

Go Go Go!!!
Iya, rencananya sih gitu, tpi baru bikin 1 animaja dulu, soalnya capek bikin gambarnya :ngacay2: :kabur:
[ASK]Graphics Problem Empty2012-08-06, 11:46
PostRe: [ASK]Graphics Problem
#6
aidilriski 
Senior
Senior
aidilriski

Level 5
Posts : 643
Thanked : 2
Engine : Multi-Engine User
Type : Mapper

[ASK]Graphics Problem Vide
all, sya mau nanya lagi, klo di menu equipment, biar dia yg ada hanya weapon(tangan) sama aksesoris bagaimana? Mohon bantuannya :sembah:
[ASK]Graphics Problem Empty2012-08-06, 12:05
PostRe: [ASK]Graphics Problem
#7
Lukas 
Senior
Senior
avatar

Level 5
Posts : 618
Thanked : 22

[ASK]Graphics Problem Vide
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.

:ngacay2:
[ASK]Graphics Problem Empty2012-08-06, 12:13
PostRe: [ASK]Graphics Problem
#8
aidilriski 
Senior
Senior
aidilriski

Level 5
Posts : 643
Thanked : 2
Engine : Multi-Engine User
Type : Mapper

[ASK]Graphics Problem Vide
@lukas, oh iya, makasih ya, nnti klo udah bisa saya ksih cendol deh :ngacay2: biasa, males baca script :kabur:
[ASK]Graphics Problem Empty2012-08-06, 12:21
PostRe: [ASK]Graphics Problem
#9
Lukas 
Senior
Senior
avatar

Level 5
Posts : 618
Thanked : 22

[ASK]Graphics Problem Vide
aidilriski wrote:
@lukas, oh iya, makasih ya, nnti klo udah bisa saya ksih cendol deh :ngacay2: biasa, males baca script :kabur:
saya juga baru tau tadi, ga pernah buka² vxa.:ngacay2:
cuman manfaatin ctrl + shift + f :ngacay2:
cendolnya yang banyak ya :lol:
[ASK]Graphics Problem Empty
PostRe: [ASK]Graphics Problem
Sponsored content 




[ASK]Graphics Problem Vide
 

[ASK]Graphics Problem

Topik sebelumnya Topik selanjutnya Kembali Ke Atas 

Similar topics

+
Halaman 1 dari 1

Permissions in this forum:Anda tidak dapat menjawab topik
RPGMakerID :: Scripts & Event Systems :: RMVX Ace Scripts :: RGSS3 Support-