RPGMakerID
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Komunitas RPG Maker Indonesia
 
IndeksIndeks  Latest imagesLatest images  PencarianPencarian  PendaftaranPendaftaran  Login  
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.

 

 [RGSS2] Shadows

Go down 
5 posters
PengirimMessage
wltr3565
Senior
Senior
wltr3565


Level 5
Posts : 870
Thanked : 28
Engine : RMVX
Skill : Skilled
Type : Scripter

Trophies
Awards:

[RGSS2] Shadows Empty
PostSubyek: [RGSS2] Shadows   [RGSS2] Shadows Empty2011-11-27, 14:02

Shadows
Versi: v1.1
Tipe: Map Graphics


Pengenalan
Udah sekian lama gak ngesubmit script ke umum :hammer:
Ini sekedar tambah bayangan doang untuk karakter di map.


Fitur
- Simpel
- Gak banyak rewel
- Adaptatif


Screenshots
[RGSS2] Shadows 317072_2134116127087_1671589958_1485485_941339329_n


Demo
No need tentunya.


Scripts
Code:
#===============================================================================
# Shadows v1.1 ~ wltr3565
# This is solely for putting shadows for map sprites. Only that simple.
# Crediting is prefered.
#===============================================================================
module WLTR
  module SHADOW_CONFIG
    GRAPHIC_DEFAULT = "shadow00" # The shadow's image. Put it in
                                # Graphics/Characters folder.
  end
end

class Game_Character
  include WLTR::SHADOW_CONFIG
  attr_accessor :shadow_on
  attr_accessor :shadow_graphic
  alias ini_shadow initialize
  def initialize
    ini_shadow
    @shadow_on = true
    @shadow_graphic = GRAPHIC_DEFAULT
  end
 
  def pure_screen_y
    result = ($game_map.adjust_y(@real_y) + 8007) / 8 - 1000 + 32
    result -= 4 unless object?
    return result
  end
end

class Sprite_Character < Sprite_Base
  alias upd_shadow update
  def update
    upd_shadow
    if @shadow_sprite == nil
      create_shadow
    end
    update_shadow
  end
 
  def create_shadow
    @shadow_sprite = Sprite.new(viewport)
    @shadow_sprite.bitmap = Cache.character(@character.shadow_graphic)
    @shadow_sprite.ox = @shadow_sprite.bitmap.width / 2
    @shadow_sprite.oy = @shadow_sprite.bitmap.height / 2
    update_shadow
  end
 
  def update_shadow
    @shadow_sprite.visible = @character.shadow_on
    @shadow_sprite.visible = false if !self.visible or @character_name == ""
    @shadow_sprite.x = x
    @shadow_sprite.y = @character.pure_screen_y
    @shadow_sprite.z = z - 100
  end
 
  alias shadow_dispose dispose
  def dispose
    @shadow_sprite.dispose
    shadow_dispose
  end
end
#===============================================================================
#
# END OF SCRIPT
#
#===============================================================================


Terms of Use
Kredit aku aja cukup.

Catatan:
Sediain sendiri ya gambar bayangannya :hammer: Sebetulnya udah ada kok di Tankentai.


Terakhir diubah oleh wltr3565 tanggal 2011-11-27, 15:09, total 1 kali diubah
Kembali Ke Atas Go down
Markotobs
Novice
Novice
Markotobs


Level 5
Posts : 152
Thanked : 1

[RGSS2] Shadows Empty
PostSubyek: Re: [RGSS2] Shadows   [RGSS2] Shadows Empty2011-11-27, 14:57

kok ga bisa ya text : Script ' ' line 36: SyntaxError ocured ?
Kembali Ke Atas Go down
maihime
Senior
Senior
maihime


Level 5
Posts : 677
Thanked : 143
Engine : Multi-Engine User
Skill : Very Beginner
Type : Artist

[RGSS2] Shadows Empty
PostSubyek: Re: [RGSS2] Shadows   [RGSS2] Shadows Empty2011-11-27, 15:01

Wah... :D Menampilkan bayangan ya... :D
Bagus juga... XD
Belum coba sih... :3
Tapi kalau karakter dalam jumlah banyak,
apa tidak akan menimbulkan lag? :3
Kembali Ke Atas Go down
http://gus-1993.deviantart.com
wltr3565
Senior
Senior
wltr3565


Level 5
Posts : 870
Thanked : 28
Engine : RMVX
Skill : Skilled
Type : Scripter

Trophies
Awards:

[RGSS2] Shadows Empty
PostSubyek: Re: [RGSS2] Shadows   [RGSS2] Shadows Empty2011-11-27, 15:10

Terperbaiki, copasnya gak bener tadi :hammer:

Lagnya gak banyak, toh gak banyak proses untuk bayangannya :hmm:
Kembali Ke Atas Go down
shikami
Member 1000 Konsep
avatar


Level 5
Posts : 3744
Thanked : 31
Engine : Multi-Engine User
Skill : Beginner
Type : Developer

Trophies
Awards:


[RGSS2] Shadows Empty
PostSubyek: Re: [RGSS2] Shadows   [RGSS2] Shadows Empty2011-11-27, 16:08

udah punya bikinan star :hammer:
ya tapi lumayanlah itung2 produk lokal :kabur:
Kembali Ke Atas Go down
http://shikamicro.wordpress.com
wildhan49
Novice
Novice
wildhan49


Level 3
Posts : 159
Thanked : 3
Engine : RMVX
Skill : Very Beginner
Type : Mapper

[RGSS2] Shadows Empty
PostSubyek: Re: [RGSS2] Shadows   [RGSS2] Shadows Empty2012-08-19, 17:11

Saya pake script itu sudah saya pake tapi saya ingin melihatnya
ternyata gak ada bayangannya. Tapi gak error di gamenya
Kembali Ke Atas Go down
http://www.wildhan971.blogspot.com
wltr3565
Senior
Senior
wltr3565


Level 5
Posts : 870
Thanked : 28
Engine : RMVX
Skill : Skilled
Type : Scripter

Trophies
Awards:

[RGSS2] Shadows Empty
PostSubyek: Re: [RGSS2] Shadows   [RGSS2] Shadows Empty2012-08-19, 17:18

Ada yang overwrite kali?
Kembali Ke Atas Go down
Sponsored content





[RGSS2] Shadows Empty
PostSubyek: Re: [RGSS2] Shadows   [RGSS2] Shadows Empty

Kembali Ke Atas Go down
 
[RGSS2] Shadows
Kembali Ke Atas 
Halaman 1 dari 1
 Similar topics
-
» [RGSS2]Joe's 1 Player CMS
» [HELP]Tentang RGSS2
» [RGSS2]Minigame Tembak2
» Hart RGSS2 Tutorial: HUD
» [ask] soal variabel di RGSS2

Permissions in this forum:Anda tidak dapat menjawab topik
RPGMakerID :: Scripts & Event Systems :: RMVX Scripts-
Navigasi: