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 | 
 

 [XP] Parallax & Fog Autoscroll in XP

Topik sebelumnya Topik selanjutnya Go down 
[XP] Parallax & Fog Autoscroll in XP Empty2011-07-26, 01:45
Post[XP] Parallax & Fog Autoscroll in XP
#1
bungatepijalan 
Moe Princess
bungatepijalan

Level 5
Posts : 1487
Thanked : 30
Engine : Multi-Engine User
Skill : Intermediate
Type : Developer
Awards:
[XP] Parallax & Fog Autoscroll in XP Vide
Parallax & Fog Autoscroll in XP
Version: 1.1
Type: Map Add-On


Pengenalan

Script ini menambahkan auto scroll pada parallax (panorama) sehingga dapat bergeser secara terus menerus seperti di RMVX, dengan cara memanipulasi kelas Spriteset_Map. Namun tidak hanya untuk parallax, tapi juga untuk fog.

Curhat Mode ON:



FAQ

Q: Apa itu parallax/panorama?
A: Ya background lah :v

Q: Bisa tolong bikin script autoscroll fog buat RMVX ga?
A: Sori masih lum sempet, maklum udah karatan :hammer:

Q: Apakah ada kemungkinan bentrok ama script lain?
A: Kayanya ga mungkin deh, soalnya script nya cukup sederhana

Q: Tapi.. gimana dengan script multiple fog nya littledrago?
A: Nah, buat yg ini kayanya bentrok deh, jadi pikirin sendiri gimana cara nyatuinnya :v

Q: Saat demonya di-run, ada masalah missing font
A: Demo ini emang pake custom font, yang dibutuhkan font yg namanya "Gabriola". Silahkan instal dulu font nya, atau hilangkan bagian
Code:
Font.default_name = "Gabriola"
  Font.default_size = 40
di script bagian Main kalo pengen pake font default nya

Q: Di demonya kok fog nya kayak blizzard? :v
A: Biz, bingung nih mo pake fog apa buat parallax luar angkasa sih =))



Screenshot

Spoiler:


Demo

Link:
- http://www.media*fire.com/?tqgppv4b3p5ez4z
- http://ifile.it/0nxkhys (mirror, still in older version)


Script

Code:
#==============================================================================
# Parallax & Fog Autoscroll in XP
# for RPG Maker XP
# Version 1.1
#==============================================================================
# Information:
#  This script makes parallaxes (panoramas) able to Autoscroll, like in RMVX
#  and also makes fogs able to Autoscroll.
#
#  Autoscroll can be configured in CustomParallax section at this script.
#  Note that the array index is map ID for the parallax & fog.
#
# Credit
#  Alissa Liu
#
#==============================================================================

#==============================================================================
# ** CustomParallax
#------------------------------------------------------------------------------
#  Define parallax (panorama) and fog autoscroll values here.
#==============================================================================

class CustomParallax
  #--------------------------------------------------------------------------
  # * Public Instance Variables
  #--------------------------------------------------------------------------
  attr_accessor :parallax_scrollx
  attr_accessor :parallax_scrolly
  attr_accessor :fog_scrollx
  attr_accessor :fog_scrolly
  def initialize
    @parallax_scrollx = [0,3]
    @parallax_scrolly = [0,2] 
    @fog_scrollx = [0,3]
    @fog_scrolly = [0,2]
  end
  def p_chg_scrollx(val)
    @parallax_scrollx[$game_map.map_id] = val
  end
  def p_chg_scrolly(val)
    @parallax_scrolly[$game_map.map_id] = val
  end
  def f_chg_scrollx(val)
    @fog_scrollx[$game_map.map_id] = val
  end
  def f_chg_scrolly(val)
    @fog_scrolly[$game_map.map_id] = val
  end
end

#==============================================================================
# ** Spriteset_Map
#------------------------------------------------------------------------------
#  This class brings together map screen sprites, tilemaps, etc.
#  It's used within the Scene_Map class.
#==============================================================================

class Spriteset_Map
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  alias cp_init initialize
  def initialize
    $cp = CustomParallax.new
    @p_scrollx = 0
    @p_scrolly = 0
    @f_scrollx = 0
    @f_scrolly = 0
    cp_init
  end
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  alias cp_update update
  def update
    cp_update
    # Update panorama plane
    if @panorama.bitmap != nil
      @p_scrollx = (@p_scrollx+$cp.parallax_scrollx[$game_map.map_id]+@panorama.bitmap.width) % @panorama.bitmap.width
      @p_scrolly = (@p_scrolly+$cp.parallax_scrolly[$game_map.map_id]+@panorama.bitmap.height) % @panorama.bitmap.height
      @panorama.ox = $game_map.display_x / 8 + @p_scrollx
      @panorama.oy = $game_map.display_y / 8 + @p_scrolly
    end
    # Update fog plane
    if @fog.bitmap != nil
      @f_scrollx = (@f_scrollx+$cp.fog_scrollx[$game_map.map_id]+@fog.bitmap.width) % @fog.bitmap.width
      @f_scrolly = (@f_scrolly+$cp.fog_scrolly[$game_map.map_id]+@fog.bitmap.height) % @fog.bitmap.height
      @fog.ox = $game_map.display_x / 4 + $game_map.fog_ox + @f_scrollx*2
      @fog.oy = $game_map.display_y / 4 + $game_map.fog_oy + @f_scrolly*2
    end
  end
end


Credit

  • Alissa Liu


Terakhir diubah oleh bungatepijalan tanggal 2011-10-11, 19:06, total 2 kali diubah
[XP] Parallax & Fog Autoscroll in XP Empty2011-07-26, 05:09
PostRe: [XP] Parallax & Fog Autoscroll in XP
#2
hyperkudit 
Pahlawan Super
hyperkudit

Level 5
Posts : 2288
Thanked : 30
Engine : RMXP
Skill : Very Beginner
Type : Artist
Awards:

[XP] Parallax & Fog Autoscroll in XP Vide
Wah.. Ini script yg saya butuhkan :v

btw, kalo char kita diem bisa dibikin nyecroll jg gk paralaxnya??
Soalnya yg saya butuhkan kyk gt..
[XP] Parallax & Fog Autoscroll in XP Empty2011-07-26, 10:46
PostRe: [XP] Parallax & Fog Autoscroll in XP
#3
bungatepijalan 
Moe Princess
bungatepijalan

Level 5
Posts : 1487
Thanked : 30
Engine : Multi-Engine User
Skill : Intermediate
Type : Developer
Awards:
[XP] Parallax & Fog Autoscroll in XP Vide
@kudit
nge scroll juga, seperti di VX :D
coba aja :D

[in mobmod]
[XP] Parallax & Fog Autoscroll in XP Empty2011-07-26, 12:55
PostRe: [XP] Parallax & Fog Autoscroll in XP
#4
Kuro Ethernite 
The Creator
Kuro Ethernite

Level 5
Posts : 1631
Thanked : 24
Engine : RMVX Ace
Skill : Masterful
Type : Jack of All Trades
Awards:

[XP] Parallax & Fog Autoscroll in XP Vide
:ngacay2: Kyakny SS ga butuh deh . . . . :ngacay2:
Quote :
Q: Bisa tolong bikin script autoscroll fog buat RMVX ga?
RMVX udah ada, Wora Multiple Fog ~ :ngacay2:
[XP] Parallax & Fog Autoscroll in XP Empty2011-07-26, 21:35
PostRe: [XP] Parallax & Fog Autoscroll in XP
#5
bungatepijalan 
Moe Princess
bungatepijalan

Level 5
Posts : 1487
Thanked : 30
Engine : Multi-Engine User
Skill : Intermediate
Type : Developer
Awards:
[XP] Parallax & Fog Autoscroll in XP Vide
@kuro
SSnya emang sengaja alissa expos :v
buat nunjukkin bahwa disini nilai autoscroll juga bisa dirobah di tengah jalan dengan menggunakan event yg memanggil fungsi yg disediakan dlm modul..

curhat mode ON:

[in mobmod]
[XP] Parallax & Fog Autoscroll in XP Empty2011-07-26, 23:31
PostRe: [XP] Parallax & Fog Autoscroll in XP
#6
redlagart 
Advance
Advance
redlagart

Level 5
Posts : 342
Thanked : 5
Engine : Multi-Engine User
Skill : Intermediate
Type : Artist
Awards:
[XP] Parallax & Fog Autoscroll in XP Vide
hohoo,, nice scirpt om...
ijin sedot... (dalam usaha sedot yang sedikit berat...)

komeng nyusul, kalo usaha sedotnya berhasil..

[XP] Parallax & Fog Autoscroll in XP Empty2011-07-27, 17:52
PostRe: [XP] Parallax & Fog Autoscroll in XP
#7
bungatepijalan 
Moe Princess
bungatepijalan

Level 5
Posts : 1487
Thanked : 30
Engine : Multi-Engine User
Skill : Intermediate
Type : Developer
Awards:
[XP] Parallax & Fog Autoscroll in XP Vide
lho, nyedotnya kok berat? padahal cuma ratusan kb lho :v
sori kalo bicara yg kurang penting :FU:

btw, tambah lagi.. link mirror demo nya: http://ifile.it/0nxkhys

~ Salam Ngacay dari Alissa Liu :ngacay2: ~
[XP] Parallax & Fog Autoscroll in XP Empty2011-10-11, 19:13
PostRe: [XP] Parallax & Fog Autoscroll in XP
#8
bungatepijalan 
Moe Princess
bungatepijalan

Level 5
Posts : 1487
Thanked : 30
Engine : Multi-Engine User
Skill : Intermediate
Type : Developer
Awards:
[XP] Parallax & Fog Autoscroll in XP Vide
Version 1.1 updated!
Changelog:
- Spriteset_Map class method redefinitions shortened using aliases, due to compatibility issues
- Crash due to not using panorama and/or fog has been prevented

New download link: http://www.media*fire.com/?tqgppv4b3p5ez4z
[XP] Parallax & Fog Autoscroll in XP Empty
PostRe: [XP] Parallax & Fog Autoscroll in XP
#9
Sponsored content 




[XP] Parallax & Fog Autoscroll in XP Vide
 

[XP] Parallax & Fog Autoscroll in XP

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 :: RMXP Scripts-