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.
|
|
| Bantuin Editin Script ini | |
| |
2012-05-10, 20:58 | Bantuin Editin Script ini |
---|
yade26 Novice
Posts : 132 Thanked : 0 Engine : RMVX Ace Skill : Skilled Type : Scripter
| OK agan agan... ini scriptnya - Spoiler:
module ADDON ASK_FULLSCREEN = true # if set to false it wont ask you and it'll go straight to # fullscreen end class Window_Text < Window_Base def initialize(x, y) super(x, y, 350, 65) refresh end def refresh self.contents.clear self.contents.draw_text(0, 0, 544, 35, "Pilih Resolusi layar") end end
class Scene_Title alias main_fullscreen? main def main if ADDON::ASK_FULLSCREEN unless $game_started Graphics.freeze $data_system = load_data('Data/System.rvdata') $game_system = Game_System.new @text_window = Window_Text.new(92, 128) @text_window.back_opacity = 0 @text_window.opacity = 0 s1 = "Layar Penuh" s2 = "Normal" @window = Window_Command.new(96, [s1 ,s2]) @window.x = 92 @window.y = 240 - @window.height / 2 @window.opacity = 0 Graphics.transition loop do Graphics.update Input.update @window.update update_window break if $game_started end Graphics.freeze @window.dispose @window = nil @text_window.dispose Graphics.transition Graphics.freeze end else auto end main_fullscreen? end def update_window if Input.trigger?(Input::C) if @window.index == 0 Sound.play_decision keybd = Win32API.new 'user32.dll', 'keybd_event', ['i', 'i', 'l', 'l'], 'v' keybd.call(0xA4, 0, 0, 0) keybd.call(13, 0, 0, 0) keybd.call(13, 0, 2, 0) keybd.call(0xA4, 0, 2, 0) else end $game_started = true elsif Input.trigger?(Input::B) Sound.play_cancel $game_started = true end end def auto keybd = Win32API.new 'user32.dll', 'keybd_event', ['i', 'i', 'l', 'l'], 'v' keybd.call(0xA4, 0, 0, 0) keybd.call(13, 0, 0, 0) keybd.call(13, 0, 2, 0) keybd.call(0xA4, 0, 2, 0) $game_started = true end end
1. Gimana caranya masukin musik BGM ke script itu ??? 2. Gmana cara ngedit text "Fullscreen" ato "Normal" dengan gambar... eh iyah... yang ininya juga "Pilih Resolusi layar" ingin diganti dengan gambar.... EDIT: lupa lagi, abis itu diset supaya udah milih resolusi layar langsung ke $scene = "Scene_Pretitle.new" |
| | | 2012-05-10, 22:23 | Re: Bantuin Editin Script ini |
---|
Nefusa 7 Senior
Posts : 954 Thanked : 6 Engine : RMXP Skill : Intermediate Type : Scripter
| 1. Gw lupa 2. coba ubah - Code:
-
s1 = "Layar Penuh" menjadi - Code:
-
s1 = RPG::Cache.pictures("NAMA FILE") jadi taruh gambarnya di folder picture Lakukan hal yang sama untuk s2, s3 dan seterurnya 3. Cari kalimat ini - Code:
-
$game_started = true ganti dengan - Code:
-
$scene = Scene_Pretitle.new semoga membantu |
| | | 2012-05-10, 22:36 | Re: Bantuin Editin Script ini |
---|
LiTTleDRAgo Senior
Posts : 712 Thanked : 27 Engine : RMXP Skill : Skilled Type : Scripter
Awards:
| 1. - Code:
-
Audio.bgm_play("Audio/BGM/" + bgm_name, bgm_volume, bgm_pitch) 2. Seperti kata Nefusa, tapi karena ini skrip RGSS2 ga ada kata RPG::Cache - Code:
-
s1 = Cache.pictures("NAMA FILE") |
| | | 2012-05-10, 22:36 | Re: Bantuin Editin Script ini |
---|
larkuzo Advance
Posts : 445 Thanked : 12 Engine : RMXP Skill : Beginner Type : Event Designer
| Hehehe, sebelumnya maap kk, aku cuma bisa bantu yang ngedit text fullscreen jadi gambar ganti script diatas dengan script ini - Code:
-
module ADDON ASK_FULLSCREEN = true # if set to false it wont ask you and it'll go straight to # fullscreen end class Window_Text < Window_Base def initialize(x, y) super(x, y, 350, 65) refresh end def refresh self.contents.clear self.contents.draw_text(0, 0, 544, 35, "Pilih Resolusi layar") end end
class Scene_Title
alias main_fullscreen? main def main if ADDON::ASK_FULLSCREEN unless $game_started Graphics.freeze $data_system = load_data('Data/System.rvdata') $game_system = Game_System.new @text_window = Window_Text.new(92, 128) @text_window.back_opacity = 0 @text_window.opacity = 0 s1 = "Layar Penuh" s2 = "Normal" @window = Window_Command.new(96, [s1 ,s2]) @window.x = 92 @window.y = 240 - @window.height / 2 @window.opacity = 0 @window.visible = true @window.contents_opacity = 0 @gambar = Sprite.new @gambar.bitmap = Cache.picture("Fullscreen") rescue nil Graphics.transition loop do Graphics.update Input.update @window.update update_window break if $game_started end Graphics.freeze @window.dispose @window = nil @text_window.dispose Graphics.transition Graphics.freeze end else auto end main_fullscreen? end
def update_window case @window.index when 0 @gambar.bitmap = Cache.picture("Fullscreen") rescue nil when 1 @gambar.bitmap = Cache.picture("Normal") rescue nil end if Input.trigger?(Input::C) if @window.index == 0 Sound.play_decision keybd = Win32API.new 'user32.dll', 'keybd_event', ['i', 'i', 'l', 'l'], 'v' keybd.call(0xA4, 0, 0, 0) keybd.call(13, 0, 0, 0) keybd.call(13, 0, 2, 0) keybd.call(0xA4, 0, 2, 0) else end $game_started = true elsif Input.trigger?(Input::B) Sound.play_cancel $game_started = true end end def auto keybd = Win32API.new 'user32.dll', 'keybd_event', ['i', 'i', 'l', 'l'], 'v' keybd.call(0xA4, 0, 0, 0) keybd.call(13, 0, 0, 0) keybd.call(13, 0, 2, 0) keybd.call(0xA4, 0, 2, 0) $game_started = true end end kemudian download kedua gambar ini link gambar : Fullscreen >> http://www.fileden.com/files/2012/3/8/3275618/Fullscreen.jpg Normal >> http://www.fileden.com/files/2012/3/8/3275618/Normal.jpg Copy kedua gambar tersebut ke Graphics > Pictures, di direktori game anda atau import ke pictures (masih belajar) maap kalo gambarnya jelek, soalnya gak ada keterangan lebih lanjut (Seperti contoh letak gambar, dsb) Kalo dikasih keterangan ntar aku buatin yang lebih bagus lagi deh. Yang itu masih berantakan |
| | | 2012-05-13, 17:14 | Re: Bantuin Editin Script ini |
---|
yade26 Novice
Posts : 132 Thanked : 0 Engine : RMVX Ace Skill : Skilled Type : Scripter
| OK... udah nih... trus gmana cara nampilin gambar monster ato playernya dikiri n kanan pilihan Resolusi Layar itu trus di loop gbnya... |
| | | 2012-05-13, 17:31 | Re: Bantuin Editin Script ini |
---|
Lukas Senior
Posts : 618 Thanked : 22
| - yade26 wrote:
- OK... udah nih...
trus gmana cara nampilin gambar monster ato playernya dikiri n kanan pilihan Resolusi Layar itu trus di loop gbnya... udah ada gambarnya ? atau dari gambar character graphic ? |
| | | 2012-05-13, 18:32 | Re: Bantuin Editin Script ini |
---|
yade26 Novice
Posts : 132 Thanked : 0 Engine : RMVX Ace Skill : Skilled Type : Scripter
| udah ada gbnya... cuma sepotong tubuhnya aja.... |
| | | 2012-05-13, 18:46 | Re: Bantuin Editin Script ini |
---|
Lukas Senior
Posts : 618 Thanked : 22
| - yade26 wrote:
- udah ada gbnya... cuma sepotong tubuhnya aja....
maksudnya ? gambarnya udah berupa background(640x480) ? liat di : tulis yg berwarna biru, class Scene_Title alias main_fullscreen? main def main if ADDON::ASK_FULLSCREEN unless $game_started Graphics.freeze $data_system = load_data('Data/System.rvdata') $game_system = Game_System.new @gambar = Sprite.new @gambar = Cache.picture('TULIS NAMA GAMBARNYA')@gambar.x = 0 #< klo gambar gak 640x480, atur kordinat X @gambar.y = 0 #< klo gambar gak 640x480, atur kordinat Y. Layar (640x480)@text_window = Window_Text.new(92, 128) @text_window.back_opacity = 0 @text_window.opacity = 0 s1 = "Layar Penuh" s2 = "Normal" @window = Window_Command.new(96, [s1 ,s2]) @window.x = 92 @window.y = 240 - @window.height / 2 @window.opacity = 0 Graphics.transition loop do Graphics.update Input.update @window.update update_window break if $game_started end Graphics.freeze @gambar.dispose@window.dispose @window = nil @text_window.dispose Graphics.transition Graphics.freeze end else auto end main_fullscreen? end jgn lupa taruh gambar di folder Pictures |
| | | 2012-05-13, 18:52 | Re: Bantuin Editin Script ini |
---|
yade26 Novice
Posts : 132 Thanked : 0 Engine : RMVX Ace Skill : Skilled Type : Scripter
| maaf bukan Background... gbnya cuma 200x400... dan ada 2, 1 gb actor dan 1 lagi musuhnya..... dari pojok kiri gb.1 diloop kedekat pilihan Fullscreen / Normal lalu stop looping disana kemudian yg gb kedua juga sama, namun dari arah yg berlawanan [ kanan] dan berhenti didekat pilihan Fullscreen/ Normal. |
| | | 2012-05-13, 18:59 | Re: Bantuin Editin Script ini |
---|
Lukas Senior
Posts : 618 Thanked : 22
| - yade26 wrote:
- maaf bukan Background... gbnya cuma 200x400...
dan ada 2, 1 gb actor dan 1 lagi musuhnya..... dari pojok kiri gb.1 diloop kedekat pilihan Fullscreen / Normal lalu stop looping disana kemudian yg gb kedua juga sama, namun dari arah yg berlawanan [ kanan] dan berhenti didekat pilihan Fullscreen/ Normal.
replace nih, aku ga nyoba. ga tau jadinya gmana.. - Code:
-
class Scene_Title
alias main_fullscreen? main def main if ADDON::ASK_FULLSCREEN unless $game_started Graphics.freeze $data_system = load_data('Data/System.rvdata') $game_system = Game_System.new @gambar = Sprite.new @gambar.bitmap = Cache.picture('TULIS NAMA GAMBARNYA') @gambar.x = -200 @gambar.y = 120 @gambar2 = Sprite.new @gambar2.bitmap = Cache.picture('TULIS NAMA GAMBARNYA') @gambar2.x = 640 @gambar2.y = 120 @text_window = Window_Text.new(92, 128) @text_window.back_opacity = 0 @text_window.opacity = 0 s1 = "Layar Penuh" s2 = "Normal" @window = Window_Command.new(96, [s1 ,s2]) @window.x = 92 @window.y = 240 - @window.height / 2 @window.opacity = 0 Graphics.transition (0..19).each {|i| @gambar2.x -= 10; @gambar.x -=10; Graphics.update} loop do Graphics.update Input.update @window.update update_window break if $game_started end Graphics.freeze @gambar.dispose @gambar2.dispose @window.dispose @window = nil @text_window.dispose Graphics.transition Graphics.freeze end else auto end main_fullscreen? end edited. salah edit post.
Terakhir diubah oleh Lukas tanggal 2012-05-13, 19:45, total 6 kali diubah |
| | | 2012-05-13, 19:10 | Re: Bantuin Editin Script ini |
---|
LiTTleDRAgo Senior
Posts : 712 Thanked : 27 Engine : RMXP Skill : Skilled Type : Scripter
Awards:
| swt pake tag code donk biar ga berantakan |
| | | 2012-05-13, 19:15 | Re: Bantuin Editin Script ini |
---|
yade26 Novice
Posts : 132 Thanked : 0 Engine : RMVX Ace Skill : Skilled Type : Scripter
| Script FullScreen line 48 : Syntax Error Occured.... itu kenapa gan ?? |
| | | 2012-05-13, 19:20 | Re: Bantuin Editin Script ini |
---|
Lukas Senior
Posts : 618 Thanked : 22
| @om drago : sorry , lupa. @yade line 48 itu apa ya ? yg tadi gambar 2 blom di dispose. - Code:
-
Class Scene_Title
alias main_fullscreen? main def main if ADDON::ASK_FULLSCREEN unless $game_started Graphics.freeze $data_system = load_data('Data/System.rvdata') $game_system = Game_System.new @gambar = Sprite.new @gambar.bitmap = Cache.picture('TULIS NAMA GAMBARNYA') @gambar.x = -200 @gambar.y = 120 @gambar2 = Sprite.new @gambar2.bitmap = Cache.picture('TULIS NAMA GAMBARNYA') @gambar2.x = 640 @gambar2.y = 120 @text_window = Window_Text.new(92, 128) @text_window.back_opacity = 0 @text_window.opacity = 0 s1 = "Layar Penuh" s2 = "Normal" @window = Window_Command.new(96, [s1 ,s2]) @window.x = 92 @window.y = 240 - @window.height / 2 @window.opacity = 0 Graphics.transition (0..19).each {|i| @gambar2.x -= 10; @gambar.x -=10; Graphics.update} loop do Graphics.update Input.update @window.update update_window break if $game_started end Graphics.freeze @gambar.dispose @gambar2.dispose @window.dispose @window = nil @text_window.dispose Graphics.transition Graphics.freeze end else auto end main_fullscreen? end yg di tambahin tuh : @gambar = Sprite.new @gambar.bitmap = Cache.picture('TULIS NAMA GAMBARNYA') @gambar.x = -200 @gambar.y = 120 @gambar2 = Sprite.new @gambar2.bitmap = Cache.picture('TULIS NAMA GAMBARNYA') @gambar2.x = 640 @gambar2.y = 120 (0..19).each {|i| @gambar2.x -= 10; @gambar.x -=10; Graphics.update} @gambar.dispose @gambar2.dispose
Terakhir diubah oleh Lukas tanggal 2012-05-13, 19:43, total 1 kali diubah |
| | | 2012-05-13, 19:29 | Re: Bantuin Editin Script ini |
---|
yade26 Novice
Posts : 132 Thanked : 0 Engine : RMVX Ace Skill : Skilled Type : Scripter
| mungkin kmu lupa ngasih ini diawal - Spoiler:
module ADDON ASK_FULLSCREEN = true # if set to false it wont ask you and it'll go straight to # fullscreen end class Window_Text < Window_Base def initialize(x, y) super(x, y, 350, 65) refresh end def refresh self.contents.clear self.contents.draw_text(0, 0, 544, 35, "Pilih Resolusi layar") end end
dan diakhir - Spoiler:
def update_window if Input.trigger?(Input::C) if @window.index == 0 Sound.play_decision keybd = Win32API.new 'user32.dll', 'keybd_event', ['i', 'i', 'l', 'l'], 'v' keybd.call(0xA4, 0, 0, 0) keybd.call(13, 0, 0, 0) keybd.call(13, 0, 2, 0) keybd.call(0xA4, 0, 2, 0) else end $game_started = true elsif Input.trigger?(Input::B) Sound.play_cancel $game_started = true end end def auto keybd = Win32API.new 'user32.dll', 'keybd_event', ['i', 'i', 'l', 'l'], 'v' keybd.call(0xA4, 0, 0, 0) keybd.call(13, 0, 0, 0) keybd.call(13, 0, 2, 0) keybd.call(0xA4, 0, 2, 0) $game_started = true end end
tpi tetep error... line 17, undefined method Class for main :Object |
| | | 2012-05-13, 19:42 | Re: Bantuin Editin Script ini |
---|
Lukas Senior
Posts : 618 Thanked : 22
| - Code:
-
module ADDON ASK_FULLSCREEN = true # if set to false it wont ask you and it'll go straight to # fullscreen end class Window_Text < Window_Base def initialize(x, y) super(x, y, 350, 65) refresh end def refresh self.contents.clear self.contents.draw_text(0, 0, 544, 35, "Pilih Resolusi layar") end end
class Scene_Title
alias main_fullscreen? main def main if ADDON::ASK_FULLSCREEN unless $game_started Graphics.freeze $data_system = load_data('Data/System.rvdata') $game_system = Game_System.new @gambara = Sprite.new @gambara.bitmap = Cache.picture('Juice') @gambara.x = -200 @gambara.y = 120 @gambarb = Sprite.new @gambarb.bitmap = Cache.picture('Juice') @gambarb.x = 640 @gambarb.y = 120 @text_window = Window_Text.new(92, 128) @text_window.back_opacity = 0 @text_window.opacity = 0 s1 = "Layar Penuh" s2 = "Normal" @window = Window_Command.new(96, [s1 ,s2]) @window.x = 92 @window.y = 240 - @window.height / 2 @window.opacity = 0 Graphics.transition (0..19).each {|i| @gambarb.x -= 10; @gambara.x +=10; Graphics.update} loop do Graphics.update Input.update @window.update update_window break if $game_started end Graphics.freeze @gambar.dispose @gambar2.dispose @window.dispose @window = nil @text_window.dispose Graphics.transition Graphics.freeze end else auto end main_fullscreen? end
def update_window if Input.trigger?(Input::C) if @window.index == 0 Sound.play_decision keybd = Win32API.new 'user32.dll', 'keybd_event', ['i', 'i', 'l', 'l'], 'v' keybd.call(0xA4, 0, 0, 0) keybd.call(13, 0, 0, 0) keybd.call(13, 0, 2, 0) keybd.call(0xA4, 0, 2, 0) else end $game_started = true elsif Input.trigger?(Input::B) Sound.play_cancel $game_started = true end end def auto keybd = Win32API.new 'user32.dll', 'keybd_event', ['i', 'i', 'l', 'l'], 'v' keybd.call(0xA4, 0, 0, 0) keybd.call(13, 0, 0, 0) keybd.call(13, 0, 2, 0) keybd.call(0xA4, 0, 2, 0) $game_started = true end end |
| | | 2012-05-13, 20:19 | Re: Bantuin Editin Script ini |
---|
yade26 Novice
Posts : 132 Thanked : 0 Engine : RMVX Ace Skill : Skilled Type : Scripter
| nah, ini baru work... cuman ada yg kurang,,, pas bag. text Pilih Resolusi Layar, Fullscreen, dan Normal... itu mw diganti juga dengan gambar... trus mw ditambahin playin musik bgm.. |
| | | 2012-05-13, 20:35 | Re: Bantuin Editin Script ini |
---|
Lukas Senior
Posts : 618 Thanked : 22
| - yade26 wrote:
- nah, ini baru work...
cuman ada yg kurang,,,
pas bag. text Pilih Resolusi Layar, Fullscreen, dan Normal... itu mw diganti juga dengan gambar... trus mw ditambahin playin musik bgm..
di post atas - yade26 wrote:
- OK... udah nih...
trus gmana cara nampilin gambar monster ato playernya dikiri n kanan pilihan Resolusi Layar itu trus di loop gbnya... zzz bukannya itu brati, situ udah bisa ? |
| | | 2012-05-13, 20:48 | Re: Bantuin Editin Script ini |
---|
yade26 Novice
Posts : 132 Thanked : 0 Engine : RMVX Ace Skill : Skilled Type : Scripter
| disini terlalu banyak script................... ane pusing.... cek di pejwan.... script pertama dari nefusa yaitu ngubah $Game start menjadi Scene_Pretitle, Little Drago udah kasih tau script buat playin bgm & Larkuzou juga udah ngedit text Fullscren/Normal dengan gambar... trus Lukas udah bikin 2 image loop... dikiri kanan nah,, semuanya itu dibikin 1 script, disatuin semua... cuman ane bingung... jadi tolong bantuin ane,,, |
| | | 2012-05-13, 20:56 | Re: Bantuin Editin Script ini |
---|
Lukas Senior
Posts : 618 Thanked : 22
| - Code:
-
module ADDON ASK_FULLSCREEN = true # if set to false it wont ask you and it'll go straight to # fullscreen end class Window_Text < Window_Base def initialize(x, y) super(x, y, 350, 65) refresh end def refresh self.contents.clear self.contents.draw_text(0, 0, 544, 35, "Pilih Resolusi layar") end end
class Scene_Title
alias main_fullscreen? main def main if ADDON::ASK_FULLSCREEN unless $game_started Graphics.freeze Audio.bgm_play("Audio/BGM/" + bgm_name, bgm_volume, bgm_pitch) $data_system = load_data('Data/System.rvdata') $game_system = Game_System.new @gambara = Sprite.new @gambara.bitmap = Cache.picture('Juice') @gambara.x = -200 @gambara.y = 120 @gambarb = Sprite.new @gambarb.bitmap = Cache.picture('Juice') @gambarb.x = 640 @gambarb.y = 120 @text_window = Window_Text.new(92, 128) @text_window.back_opacity = 0 @text_window.opacity = 0 s1 = Cache.pictures("NAMA FILE") s2 = Cache.pictures("NAMA FILE") @window = Window_Command.new(96, [s1 ,s2]) @window.x = 92 @window.y = 240 - @window.height / 2 @window.opacity = 0 Graphics.transition (0..19).each {|i| @gambarb.x -= 10; @gambara.x +=10; Graphics.update} loop do Graphics.update Input.update @window.update update_window break if $game_started end Graphics.freeze @gambar.dispose @gambar2.dispose @window.dispose @window = nil @text_window.dispose Graphics.transition Graphics.freeze end else auto end main_fullscreen? end
def update_window case @window.index when 0 @gambar.bitmap = Cache.picture("Fullscreen") rescue nil when 1 @gambar.bitmap = Cache.picture("Normal") rescue nil end if Input.trigger?(Input::C) if @window.index == 0 Sound.play_decision keybd = Win32API.new 'user32.dll', 'keybd_event', ['i', 'i', 'l', 'l'], 'v' keybd.call(0xA4, 0, 0, 0) keybd.call(13, 0, 0, 0) keybd.call(13, 0, 2, 0) keybd.call(0xA4, 0, 2, 0) else end $scene = Scene_Pretitle.new elsif Input.trigger?(Input::B) Sound.play_cancel $scene = Scene_Pretitle.new end end def auto keybd = Win32API.new 'user32.dll', 'keybd_event', ['i', 'i', 'l', 'l'], 'v' keybd.call(0xA4, 0, 0, 0) keybd.call(13, 0, 0, 0) keybd.call(13, 0, 2, 0) keybd.call(0xA4, 0, 2, 0) $scene = Scene_Pretitle.new end end |
| | | 2012-05-13, 20:58 | Re: Bantuin Editin Script ini |
---|
LiTTleDRAgo Senior
Posts : 712 Thanked : 27 Engine : RMXP Skill : Skilled Type : Scripter
Awards:
| copy aja gambarnya ke sample project, beserta semua skrip yg kk pakai, terus upload ke media*fire |
| | | 2012-05-13, 21:05 | Re: Bantuin Editin Script ini |
---|
yade26 Novice
Posts : 132 Thanked : 0 Engine : RMVX Ace Skill : Skilled Type : Scripter
| Maaf, Error line 23 : Name Error Occured Unintialized constant for Scene_Title::Invicible NB: Invicible => nama lagunya |
| | | 2012-05-13, 21:07 | Re: Bantuin Editin Script ini |
---|
larkuzo Advance
Posts : 445 Thanked : 12 Engine : RMXP Skill : Beginner Type : Event Designer
| @Lukas kayanya bakal ada yang error, soalnya @gambar nya belum dibikin di def main tapi diganti di def update_window |
| | | 2012-05-13, 21:38 | Re: Bantuin Editin Script ini |
---|
Lukas Senior
Posts : 618 Thanked : 22
| - yade26 wrote:
- Maaf, Error line 23 : Name Error Occured
Unintialized constant for Scene_Title::Invicible
NB: Invicible => nama lagunya kamu nulisnya gimana ? contohnya begini : Audio.bgm_play("Audio/BGM/Invicible", 100, 100) - larkuzo wrote:
- @Lukas
kayanya bakal ada yang error, soalnya @gambar nya belum dibikin di def main tapi diganti di def update_window ini maksudnya apaan ? ga mudeng kan itu saya taruh di def main.oh, iya.. lupa - Code:
-
module ADDON ASK_FULLSCREEN = true # if set to false it wont ask you and it'll go straight to # fullscreen end class Window_Text < Window_Base def initialize(x, y) super(x, y, 350, 65) refresh end def refresh self.contents.clear self.contents.draw_text(0, 0, 544, 35, "Pilih Resolusi layar") end end
class Scene_Title
alias main_fullscreen? main def main if ADDON::ASK_FULLSCREEN unless $game_started Graphics.freeze Audio.bgm_play("Audio/BGM/" + bgm_name, bgm_volume, bgm_pitch) $data_system = load_data('Data/System.rvdata') $game_system = Game_System.new @gambara = Sprite.new @gambara.bitmap = Cache.picture('Juice') @gambara.x = -200 @gambara.y = 120 @gambarb = Sprite.new @gambarb.bitmap = Cache.picture('Juice') @gambarb.x = 640 @gambarb.y = 120 @gambar = Sprite.new @gambar.bitmap = Cache.picture("Fullscreen") rescue nil @text_window = Window_Text.new(92, 128) @text_window.back_opacity = 0 @text_window.opacity = 0 s1 = Cache.pictures("NAMA FILE") s2 = Cache.pictures("NAMA FILE") @window = Window_Command.new(96, [s1 ,s2]) @window.x = 92 @window.y = 240 - @window.height / 2 @window.opacity = 0 Graphics.transition (0..19).each {|i| @gambarb.x -= 10; @gambara.x +=10; Graphics.update} loop do Graphics.update Input.update @window.update update_window break if $game_started end Graphics.freeze @gambar.dispose @gambara.dispose @gambarb.dispose @window.dispose @window = nil @text_window.dispose Graphics.transition Graphics.freeze end else auto end main_fullscreen? end
def update_window case @window.index when 0 @gambar.bitmap = Cache.picture("Fullscreen") rescue nil when 1 @gambar.bitmap = Cache.picture("Normal") rescue nil end if Input.trigger?(Input::C) if @window.index == 0 Sound.play_decision keybd = Win32API.new 'user32.dll', 'keybd_event', ['i', 'i', 'l', 'l'], 'v' keybd.call(0xA4, 0, 0, 0) keybd.call(13, 0, 0, 0) keybd.call(13, 0, 2, 0) keybd.call(0xA4, 0, 2, 0) else end $scene = Scene_Pretitle.new elsif Input.trigger?(Input::B) Sound.play_cancel $scene = Scene_Pretitle.new end end def auto keybd = Win32API.new 'user32.dll', 'keybd_event', ['i', 'i', 'l', 'l'], 'v' keybd.call(0xA4, 0, 0, 0) keybd.call(13, 0, 0, 0) keybd.call(13, 0, 2, 0) keybd.call(0xA4, 0, 2, 0) $scene = Scene_Pretitle.new end end |
| | | 2012-05-13, 21:53 | Re: Bantuin Editin Script ini |
---|
larkuzo Advance
Posts : 445 Thanked : 12 Engine : RMXP Skill : Beginner Type : Event Designer
| @Lukas maksud saya kenapa di def main gak ada @gambar = Sprite.new @gambar.bitmap = Cache.picture("Fulscreen") padahal di def update_window ada when 0 @gambar.bitmap = Cache.picture("Fulscreen") when 1 @gambar.bitmap = Cache.picture("Normal")ah keburu sadar , padahal udah cape2 ngetik di hp EDIT : itu mending yang s1 sama s2 nya diganti jadi text aja, takutnya bentrok sama bitmap @gambar |
| | | 2012-05-13, 22:22 | Re: Bantuin Editin Script ini |
---|
Lukas Senior
Posts : 618 Thanked : 22
| - larkuzo wrote:
@Lukas maksud saya kenapa di def main gak ada @gambar = Sprite.new @gambar.bitmap = Cache.picture("Fulscreen") padahal di def update_window ada when 0 @gambar.bitmap = Cache.picture("Fulscreen") when 1 @gambar.bitmap = Cache.picture("Normal") ah keburu sadar , padahal udah cape2 ngetik di hp EDIT : itu mending yang s1 sama s2 nya diganti jadi text aja, takutnya bentrok sama bitmap @gambar maaf lg badmood iya itu emang bentrok, biar dia ganti sndiri lahh. ato om yg susun ulang, |
| | | | Re: Bantuin Editin Script ini |
---|
Sponsored content
| | | | | Bantuin Editin Script ini | |
|
Similar topics | |
|
Similar topics | |
| |
Halaman 1 dari 2 | Pilih halaman : 1, 2 | |
| 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 ]
|
|
|
|
|
|