irpg Community

Full Version: สอบถามวิธีการเปลี่ยน หน้าเมนูหลักครับ
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
ตอนนี้มันมี Newgame, Continue, Quit ครับ
ผมอยากได้ How to play แล้วใส่รูปภาพบอกเกี่ยวกับวิธีการเล่น, ปุ่มกดไรงี้อะครับ ต้องทำยังไง

ขอบคุณมากมากครับ Smile
(12-28-2016, 02:46 PM)ronnyzamak Wrote: [ -> ]ตอนนี้มันมี Newgame, Continue, Quit ครับ
ผมอยากได้ How to play แล้วใส่รูปภาพบอกเกี่ยวกับวิธีการเล่น, ปุ่มกดไรงี้อะครับ ต้องทำยังไง

ขอบคุณมากมากครับ Smile

ใช้ RPG Maker ตัวไหนอยู่ครับ (XP, VX, VXAce, หรือ MV)

EDIT:

มันยาวนะ ถ้าให้แสดง How to Play เป็นตัวเลือกในหน้า Title
แนะนำว่าให้ทำเป็น Autostart Event ในแมพแรกจะดีกว่า
(12-30-2016, 05:49 PM)admannon Wrote: [ -> ]
(12-28-2016, 02:46 PM)ronnyzamak Wrote: [ -> ]ตอนนี้มันมี Newgame, Continue, Quit ครับ
ผมอยากได้ How to play แล้วใส่รูปภาพบอกเกี่ยวกับวิธีการเล่น, ปุ่มกดไรงี้อะครับ ต้องทำยังไง

ขอบคุณมากมากครับ Smile

ใช้ RPG Maker ตัวไหนอยู่ครับ (XP, VX, VXAce, หรือ MV)

EDIT:

มันยาวนะ ถ้าให้แสดง How to Play เป็นตัวเลือกในหน้า Title
แนะนำว่าให้ทำเป็น Autostart Event ในแมพแรกจะดีกว่า

VX Ace ครับผม พอดีโดน comment มาว่าต้องใช้แบบนี้อะครับ
(1) เพิ่มเมนูที่ต้องการใน Window_TitleCommand

ตอนแรกจะมีแค่

Code:
def make_command_list
    add_command(Vocab::new_game, :new_game)
    add_command(Vocab::continue, :continue, continue_enabled)
    add_command(Vocab::shutdown, :shutdown)
end


แล้วก็เพิ่มเมนูที่ต้องการ เช่น

Code:
def make_command_list
    add_command(Vocab::new_game, :new_game)
    add_command(Vocab::continue, :continue, continue_enabled)
    add_command(Vocab::help, :help) #Added
    add_command(Vocab::shutdown, :shutdown)
end



(2) ใน Scene_Title ให้ใส่เมนูส่วนที่เพิ่มมาในข้อ 1 เช่น

Code:
def create_command_window
    @command_window = Window_TitleCommand.new
    @command_window.set_handler(:new_game, method(:command_new_game))
    @command_window.set_handler(:continue, method(:command_continue))
    @command_window.set_handler(:help, method(:command_help)) #Added
    @command_window.set_handler(:shutdown, method(:command_shutdown))
end



แล้วก็เพิ่มคำสั่งเมื่อกดปุ่ม help ลงไปใน Scene_Title ด้วย

Code:
def command_help
    #Add code here
end



-------------------------------------------------------------------------------------------------------------

จริง ๆ มีเยอะกว่านี้ แต่ขี้เกียจอธิบายละเอียด ตรงนี้แค่บอกไว้ให้เป็นแนวทางเฉย ๆ เว็บไทยอาจไม่ค่อยมีเรื่องลึก ๆ พวกนี้ ถ้าอยากศึกษาต้องอ่านภาษาอังกฤษเอา เว็บภาษาอังกฤษมีสอนเรื่องพวกนี้อยู่หลายเว็บ ลองหาดูเองล่ะกันนะ
(01-01-2017, 11:02 PM)Mikichan Wrote: [ -> ](1) เพิ่มเมนูที่ต้องการใน Window_TitleCommand

ตอนแรกจะมีแค่

Code:
def make_command_list
    add_command(Vocab::new_game, :new_game)
    add_command(Vocab::continue, :continue, continue_enabled)
    add_command(Vocab::shutdown, :shutdown)
end


แล้วก็เพิ่มเมนูที่ต้องการ เช่น

Code:
def make_command_list
    add_command(Vocab::new_game, :new_game)
    add_command(Vocab::continue, :continue, continue_enabled)
    add_command(Vocab::help, :help) #Added
    add_command(Vocab::shutdown, :shutdown)
end



(2) ใน Scene_Title ให้ใส่เมนูส่วนที่เพิ่มมาในข้อ 1 เช่น

Code:
def create_command_window
    @command_window = Window_TitleCommand.new
    @command_window.set_handler(:new_game, method(:command_new_game))
    @command_window.set_handler(:continue, method(:command_continue))
    @command_window.set_handler(:help, method(:command_help)) #Added
    @command_window.set_handler(:shutdown, method(:command_shutdown))
end



แล้วก็เพิ่มคำสั่งเมื่อกดปุ่ม help ลงไปใน Scene_Title ด้วย

Code:
def command_help
    #Add code here
end



-------------------------------------------------------------------------------------------------------------

จริง ๆ มีเยอะกว่านี้ แต่ขี้เกียจอธิบายละเอียด ตรงนี้แค่บอกไว้ให้เป็นแนวทางเฉย ๆ เว็บไทยอาจไม่ค่อยมีเรื่องลึก ๆ พวกนี้ ถ้าอยากศึกษาต้องอ่านภาษาอังกฤษเอา เว็บภาษาอังกฤษมีสอนเรื่องพวกนี้อยู่หลายเว็บ ลองหาดูเองล่ะกันนะ

เป็นประโยชน์มากเลยครับ ขอบคุณมากยังไงเดี๋ยวลองไปตามคำแนะนำดู ขอบคุณจริงๆครับ
(12-30-2016, 05:49 PM)admannon Wrote: [ -> ]
(12-28-2016, 02:46 PM)ronnyzamak Wrote: [ -> ]ตอนนี้มันมี Newgame, Continue, Quit ครับ
ผมอยากได้ How to play แล้วใส่รูปภาพบอกเกี่ยวกับวิธีการเล่น, ปุ่มกดไรงี้อะครับ ต้องทำยังไง

ขอบคุณมากมากครับ Smile

ใช้ RPG Maker ตัวไหนอยู่ครับ (XP, VX, VXAce, หรือ MV)

EDIT:

มันยาวนะ ถ้าให้แสดง How to Play เป็นตัวเลือกในหน้า Title
แนะนำว่าให้ทำเป็น Autostart Event ในแมพแรกจะดีกว่า
แนวคิดดีค่ะ