|
| [Solved] Kakak scripter bantu saya! | |
| | Pengirim | Message |
---|
Uchiha Melvin Newbie
Posts : 60 Thanked : 0 Engine : RMXP Skill : Beginner Type : Event Designer
| Subyek: [Solved] Kakak scripter bantu saya! 2012-05-07, 14:39 | |
| Mau nanya nih kakak! Cara merubah tampilan credits yang ada di scripts ini (http://www.rmxpunlimited.net/forums/topic/4591-credits-script/) yang tadinya posisi hurufnya center menjadi Align Left (Rata Kiri) gimana sih? - Spoiler:
CREDITS_FONT = "Times New Roman" CREDITS_SIZE = 24 CREDITS_OUTLINE = Color.new(0,0,127, 255) CREDITS_SHADOW = Color.new(0,0,0, 100) CREDITS_FILL = Color.new(255,255,255, 255)
#============================================================================== # ¦ Scene_Credits #------------------------------------------------------------------------------ # Scrolls the credits you make below. Original Author unknown. Edited by # MiDas Mike so it doesn't play over the Title, but runs by calling the following: # $scene = Scene_Credits.new #==============================================================================
class Scene_Credits
# This next piece of code is the credits. CREDIT=<<_END_ #Start Editing Untitled Project
Director --------------- MiDas Mike
Scripts --------------- SephirothSpawn Deke Dubealex Momomomo? (yes, that's their name) Wachunga Near Fantastica Datriot MeisMe rpgmaker CogWheel BudsieBuds
Graphics --------------- Tana zanyzora ccoa Enterbrain TR-the-one-and-only
Music and sound --------------- Andrew Estrada DoomWorld.com IcePlug Andy Smith Enterbrain Joe Gallagher drenrin2120
Mapping --------------- MiDas Mike
Storyline --------------- MiDas Mike
Beta Testers ---------------
Special Thanks --------------- Unlimited Adventures - "Without that game, this game would never have made a start. UA is where Journey of Heroes first started."
Trickster - "Thanks for fixing the scripts. I greatly appreciate your help in this project."
---------------
Thank you for playing this game. We hope you enjoyed it. Watch for other titles by MiDas Productions in the future..
#Stop Editing _END_ def main #------------------------------- # Animated Background Setup #------------------------------- @sprite = Sprite.new #@sprite.bitmap = RPG::Cache.title($data_system.title_name) @backgroundList = ["MiDas"] #Edit this to the title screen(s) you wish to show in the background. They do repeat. @backgroundGameFrameCount = 0 # Number of game frames per background frame. @backgroundG_BFrameCount = 3.4 @sprite.bitmap = RPG::Cache.title(@backgroundList[0]) #------------------ # Credits Setup #------------------ credit_lines = CREDIT.split(/\n/) credit_bitmap = Bitmap.new(640,32 * credit_lines.size) credit_lines.each_index do |i| line = credit_lines[i] credit_bitmap.font.name = CREDITS_FONT credit_bitmap.font.size = CREDITS_SIZE x = 0 credit_bitmap.font.color = CREDITS_OUTLINE credit_bitmap.draw_text(0 + 1,i * 32 + 1,640,32,line,1) credit_bitmap.draw_text(0 - 1,i * 32 + 1,640,32,line,1) credit_bitmap.draw_text(0 + 1,i * 32 - 1,640,32,line,1) credit_bitmap.draw_text(0 - 1,i * 32 - 1,640,32,line,1) credit_bitmap.font.color = CREDITS_SHADOW credit_bitmap.draw_text(0,i * 32 + 8,640,32,line,1) credit_bitmap.font.color = CREDITS_FILL credit_bitmap.draw_text(0,i * 32,640,32,line,1) end @credit_sprite = Sprite.new(Viewport.new(0,50,640,380)) @credit_sprite.bitmap = credit_bitmap @credit_sprite.z = 9998 @credit_sprite.oy = -430 @frame_index = 0 @last_flag = false #-------- # Setup #-------- # ME?BGS ?????? Audio.me_stop Audio.bgs_stop Audio.se_stop # ????????? Graphics.transition # ?????? loop do # ???????? Graphics.update # ??????? Input.update # ?????? update # ???????????????? if $scene != self break end end # ????????? Graphics.freeze @sprite.dispose @credit_sprite.dispose end #Checks if credits bitmap has reached it's ending point def last? return (@frame_index >= @credit_sprite.bitmap.height + 480) end def last if not @last_flag @last_flag = true @last_count = 0 else @last_count += 1 end if @last_count >= 300 $scene = Scene_Map.new end end #Check if the credits should be cancelled def cancel? if Input.trigger?(Input::C) $scene = Scene_Map.new return true end return false end #-------------------------------------------------------------------------- # ? ?????? #-------------------------------------------------------------------------- def update @backgroundGameFrameCount = @backgroundGameFrameCount + 1 if @backgroundGameFrameCount >= @backgroundG_BFrameCount @backgroundGameFrameCount = 0 # Add current background frame to the end @backgroundList = @backgroundList << @backgroundList[0] # and drop it from the first position @backgroundList.delete_at(0) @sprite.bitmap = RPG::Cache.title(@backgroundList[0]) end return if cancel? last if last? @credit_sprite.oy += 1 end end
| |
| | | LiTTleDRAgo Senior
Posts : 712 Thanked : 27 Engine : RMXP Skill : Skilled Type : Scripter
Trophies
Awards: | Subyek: Re: [Solved] Kakak scripter bantu saya! 2012-05-07, 14:59 | |
| credit_bitmap.draw_text(0 + 1,i * 32 + 1,640,32,line,1) credit_bitmap.draw_text(0 - 1,i * 32 + 1,640,32,line,1) credit_bitmap.draw_text(0 + 1,i * 32 - 1,640,32,line,1) credit_bitmap.draw_text(0 - 1,i * 32 - 1,640,32,line,1) credit_bitmap.font.color = CREDITS_SHADOW credit_bitmap.draw_text(0,i * 32 + 8,640,32,line,1) credit_bitmap.font.color = CREDITS_FILL credit_bitmap.draw_text(0,i * 32,640,32,line,1)
yang dibold itu diganti dengan 0 | |
| | | Uchiha Melvin Newbie
Posts : 60 Thanked : 0 Engine : RMXP Skill : Beginner Type : Event Designer
| Subyek: Re: [Solved] Kakak scripter bantu saya! 2012-05-07, 15:12 | |
| makasih kakak akan saya coba
| |
| | | LiTTleDRAgo Senior
Posts : 712 Thanked : 27 Engine : RMXP Skill : Skilled Type : Scripter
Trophies
Awards: | Subyek: Re: [Solved] Kakak scripter bantu saya! 2012-05-07, 15:17 | |
| sama-sama | |
| | | Uchiha Melvin Newbie
Posts : 60 Thanked : 0 Engine : RMXP Skill : Beginner Type : Event Designer
| Subyek: Re: [Solved] Kakak scripter bantu saya! 2012-05-07, 16:21 | |
| Makasih kakak, bisa....
Thread saya dah selesai silahkan di locked
| |
| | | LowlingLife Administrator
Posts : 2000 Thanked : 25 Engine : Multi-Engine User
Trophies
Awards:
| Subyek: Re: [Solved] Kakak scripter bantu saya! 2012-05-07, 17:52 | |
| Berhubung udah solved dan saya lihat sepertinya tidak ada yang ingin ditambahkan lagi, maka saya akan me-lock thread ini. Kalau TS atau member lain ingin menambahkan, harap hubungi admin atau moderator setempat. Terima kasih.
~Locked Since Solved~ | |
| | | Sponsored content
| Subyek: Re: [Solved] Kakak scripter bantu saya! | |
| |
| | | | [Solved] Kakak scripter bantu saya! | |
|
Similar topics | |
|
| Permissions in this forum: | Anda tidak dapat menjawab topik
| |
| |
| Latest topics | » [Web Novel] Gloria Infidelis by LightNightKnight 2016-11-17, 21:27
» [Announcement] Forum baru untuk RMID by TheoAllen 2016-08-25, 16:39
» Where I'm Wrong ? by ReydVires 2016-07-24, 16:10
» flakeheartnet's Resources part III by flakeheartnet 2016-07-08, 14:30
» Keira's Art Warehouse by KeiraBlaze 2016-06-28, 19:27
» Theo Core Time System + Bingung by Lockin 2016-06-27, 16:24
» Error Script, Maybe ? by Lockin 2016-06-27, 16:20
» Nusaimoe @ RMID Lounge by Jihad Bagas 2016-06-21, 05:02
» Call Random Battle by Lockin 2016-06-15, 17:04
» Flakeheartnet Resources Part II [come back gift] by flakeheartnet 2016-06-07, 15:51
|
Statistics
|
Members: [ 4947 ]
Topics: [ 8258 ]
Posts: [ 112606 ]
Newest member: [ https://rmid.forumotion.net/u4968 ]
|
|
|
|