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 | 
 

 [RGSS2] Shadows

Topik sebelumnya Topik selanjutnya Go down 
[RGSS2] Shadows Empty2011-11-27, 14:02
Post[RGSS2] Shadows
#1
wltr3565 
Senior
Senior
wltr3565

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

[RGSS2] Shadows Vide
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
[RGSS2] Shadows Empty2011-11-27, 14:57
PostRe: [RGSS2] Shadows
#2
Markotobs 
Novice
Novice
Markotobs

Level 5
Posts : 152
Thanked : 1

[RGSS2] Shadows Vide
kok ga bisa ya text : Script ' ' line 36: SyntaxError ocured ?
[RGSS2] Shadows Empty2011-11-27, 15:01
PostRe: [RGSS2] Shadows
#3
maihime 
Senior
Senior
maihime

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

[RGSS2] Shadows Vide
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
[RGSS2] Shadows Empty2011-11-27, 15:10
PostRe: [RGSS2] Shadows
#4
wltr3565 
Senior
Senior
wltr3565

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

[RGSS2] Shadows Vide
Terperbaiki, copasnya gak bener tadi :hammer:

Lagnya gak banyak, toh gak banyak proses untuk bayangannya :hmm:
[RGSS2] Shadows Empty2011-11-27, 16:08
PostRe: [RGSS2] Shadows
#5
shikami 
Member 1000 Konsep
avatar

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


[RGSS2] Shadows Vide
udah punya bikinan star :hammer:
ya tapi lumayanlah itung2 produk lokal :kabur:
[RGSS2] Shadows Empty2012-08-19, 17:11
PostRe: [RGSS2] Shadows
#6
wildhan49 
Novice
Novice
wildhan49

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

[RGSS2] Shadows Vide
Saya pake script itu sudah saya pake tapi saya ingin melihatnya
ternyata gak ada bayangannya. Tapi gak error di gamenya
[RGSS2] Shadows Empty2012-08-19, 17:18
PostRe: [RGSS2] Shadows
#7
wltr3565 
Senior
Senior
wltr3565

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

[RGSS2] Shadows Vide
Ada yang overwrite kali?
[RGSS2] Shadows Empty
PostRe: [RGSS2] Shadows
#8
Sponsored content 




[RGSS2] Shadows Vide
 

[RGSS2] Shadows

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