| [VXA] Starting Game Beda | |
|
|
Pengirim | Message |
---|
larkuzo Advance
Posts : 445 Thanked : 12 Engine : RMXP Skill : Beginner Type : Event Designer
| Subyek: [VXA] Starting Game Beda 2012-12-13, 16:50 | |
| Starting Game Beda Versi: 1.0 Tipe: Custom PengenalanMembantu ini ~ https://rmid.forumotion.net/t7209p20-cara-starting-game-yang-beda-v#110675 Fitur
- Gak munculin Title Screen kalo belum ada save-an
- Munculin Title Screen kalo udah ada save-an
- Munculin logo di Title Screen kalo udah tamat
ScreenshotsBuat apa? DemoBandwidth sekarat Scripts - Code:
-
#------------------------------------------------------------------------------- # Custom System # Author : larkuzo # Contacts : http://www.rpgmakerid.com/u2820 # Publisher : Larkuzoft #------------------------------------------------------------------------------- #------------------------------------------------------------------------------- # CONFIG HERE!! #------------------------------------------------------------------------------- module Larkuzo LOGO_X = 300 #posisi X logo LOGO_Y = 210 #posisi Y logo LOGO_NAME = "Logo" #nama file logo CENTER_LOGO = false #true/false, logonya ditengah end #------------------------------------------------------------------------------- # Cara pakai : # Paste kan script ini di bawah materials di atas main, kemudian copy kan gambar # yang akan dijadikan logo ke folder Graphics/System, ubah LOGO_NAME di atas # sesuai dengan nama file logo mu. # Kemudian, saat di tamat game, jangan lupa untuk gunakan call script command # di page 4, kemudian tuliskan ini : # $tamat = true # Nanti script ini akan memeriksa setiap mulai game, apakah sudah tamat atau # belum, tergantung variable $tamat. #------------------------------------------------------------------------------- '##############################################################################' '##############################################################################' '########################## AWAS, ANJING GALAK!! :v ###########################' '##############################################################################' '##############################################################################' #------------------------------------------------------------------------------- # Scene Manager #------------------------------------------------------------------------------- module SceneManager def self.run DataManager.init Audio.setup_midi if use_midi? if first_scene_class == Scene_Map DataManager.setup_new_game $game_map.autoplay end @scene = first_scene_class.new @scene.main while @scene end def self.first_scene_class $BTEST ? Scene_Battle : DataManager.save_file_exists? ? Scene_Title : Scene_Map end end
module DataManager #-------------------------------------------------------------------------- # * Create Save Contents #-------------------------------------------------------------------------- def self.make_save_contents contents = {} contents[:system] = $game_system contents[:timer] = $game_timer contents[:message] = $game_message contents[:switches] = $game_switches contents[:variables] = $game_variables contents[:self_switches] = $game_self_switches contents[:actors] = $game_actors contents[:party] = $game_party contents[:troop] = $game_troop contents[:map] = $game_map contents[:player] = $game_player contents[:tamat] = $tamat contents end #-------------------------------------------------------------------------- # * Extract Save Contents #-------------------------------------------------------------------------- def self.extract_save_contents(contents) $game_system = contents[:system] $game_timer = contents[:timer] $game_message = contents[:message] $game_switches = contents[:switches] $game_variables = contents[:variables] $game_self_switches = contents[:self_switches] $game_actors = contents[:actors] $game_party = contents[:party] $game_troop = contents[:troop] $game_map = contents[:map] $game_player = contents[:player] $tamat = contents[:tamat] end #-------------------------------------------------------------------------- def self.create_game_objects $game_temp = Game_Temp.new $game_system = Game_System.new $game_timer = Game_Timer.new $game_message = Game_Message.new $game_switches = Game_Switches.new $game_variables = Game_Variables.new $game_self_switches = Game_SelfSwitches.new $game_actors = Game_Actors.new $game_party = Game_Party.new $game_troop = Game_Troop.new $game_map = Game_Map.new $game_player = Game_Player.new $tamat = false end end #------------------------------------------------------------------------------- # Scene_Title #------------------------------------------------------------------------------- class Scene_Title < Scene_Base alias :starts :start def start for i in 0..DataManager.savefile_max - 1 if !Dir.glob(sprintf("Save%02d.rvdata2", i+1)).empty? DataManager.load_game(i) if $tamat break end end end starts $tamat ? draw_logo : nil end #----------------------------------------------------------------- # Draw Logo #----------------------------------------------------------------- def draw_logo @logo = Sprite.new @gambar_logo = Cache.system(Larkuzo::LOGO_NAME) rescue nil @logo.bitmap = @gambar_logo @logo.x = Larkuzo::LOGO_X @logo.y = Larkuzo::LOGO_Y @logo.z = @command_window.z-1 center_sprite(@logo) if Larkuzo::CENTER_LOGO end #----------------------------------------------------------------- # Terminate #----------------------------------------------------------------- alias :terminates :terminate def terminate terminates delete_logo if $tamat end #----------------------------------------------------------------- # Delete Logo #----------------------------------------------------------------- def delete_logo @logo.bitmap.dispose @logo.dispose end end
cara pakai ada di script Credits
- Enterbrain
- Larkuzo (kalo mau )
| |
|
| |
Radis3D Sang Iblis
Posts : 755 Thanked : 3 Engine : RMVX Ace Skill : Very Beginner Type : Writer
Trophies
Awards: | Subyek: Re: [VXA] Starting Game Beda 2012-12-13, 17:03 | |
| kok gak bisa ya?? apa ane yang gak bisa ngaturnya????? :p | |
|
| |
larkuzo Advance
Posts : 445 Thanked : 12 Engine : RMXP Skill : Beginner Type : Event Designer
| Subyek: Re: [VXA] Starting Game Beda 2012-12-13, 17:05 | |
| Gak bisa apanya? Di saya bisa | |
|
| |
Radis3D Sang Iblis
Posts : 755 Thanked : 3 Engine : RMVX Ace Skill : Very Beginner Type : Writer
Trophies
Awards: | Subyek: Re: [VXA] Starting Game Beda 2012-12-13, 17:07 | |
| nyeting tamatnya.... :p
ane udah set true tapi logo gak nongol.. coba bisa lebih detail gak???
| |
|
| |
larkuzo Advance
Posts : 445 Thanked : 12 Engine : RMXP Skill : Beginner Type : Event Designer
| Subyek: Re: [VXA] Starting Game Beda 2012-12-13, 17:15 | |
| Udah disimpen di Graphics/System? Udah sesuai nama file di folder dan di script? | |
|
| |
Radis3D Sang Iblis
Posts : 755 Thanked : 3 Engine : RMVX Ace Skill : Very Beginner Type : Writer
Trophies
Awards: | Subyek: Re: [VXA] Starting Game Beda 2012-12-13, 17:17 | |
| udah.. bntar2
setting tamatnya tu gimana??
script: $tamat=true gitu???
klo iya setelah itu gmana? skip menunya udah work... cuma dibagian ini yang bigung | |
|
| |
larkuzo Advance
Posts : 445 Thanked : 12 Engine : RMXP Skill : Beginner Type : Event Designer
| Subyek: Re: [VXA] Starting Game Beda 2012-12-13, 17:25 | |
| Cobain save game, terus exit dan buka lagi gamenya | |
|
| |
Radis3D Sang Iblis
Posts : 755 Thanked : 3 Engine : RMVX Ace Skill : Very Beginner Type : Writer
Trophies
Awards: | Subyek: Re: [VXA] Starting Game Beda 2012-12-13, 17:29 | |
| ternyata salah penempatan nya om.. :p
ane taruh save baru tamat setelah di dibalik tamat baru save
bisa
maap ya om, gak bisa ngasi jempol meski udah iso.. нїκѕ нїκѕ нїκѕ нїκѕ | |
|
| |
arls Advance
Posts : 412 Thanked : 3 Engine : RMVX Ace Skill : Very Beginner Type : Mapper
Trophies
Awards: | Subyek: Re: [VXA] Starting Game Beda 2012-12-13, 17:30 | |
| mmm.... Gmana ya kk bikin script ini ngedeteksi kalau kita udah tamat game tersebut? | |
|
| |
larkuzo Advance
Posts : 445 Thanked : 12 Engine : RMXP Skill : Beginner Type : Event Designer
| Subyek: Re: [VXA] Starting Game Beda 2012-12-13, 17:36 | |
| @arls Nambahin data jenis baru (boolean) ke save data, kemudian saat mulai game kita ekstrak setiap save data untuk mencari data boolean tersebut, jika sudah ketemu, tinggal di cek, apakah bernilai true atau false, kalau udah ketemu yang true, ya.. sudah Kalo gak ketemu berarti belum tamat Kesananya terserah Tinggal manfaatkan data boolean tersebut Di script ini, data bertipe boolean untuk mengecek tamat atau tidaknya adalah $tamat | |
|
| |
Sponsored content
| Subyek: Re: [VXA] Starting Game Beda | |
| |
|
| |
| [VXA] Starting Game Beda | |
|