RPG Master Brasil
Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.

[RGSS2] Script de Sombra

Ir para baixo

[RGSS2] Script de Sombra Empty [RGSS2] Script de Sombra

Mensagem por Dark Dudu Sex Dez 05, 2008 1:29 pm

Script de Sombra

Bom, basta colocar acima de main

Créditos


Código:
#===========================================================================================#
# Créditos:                                                                                #
# .:Fênix:.                                                                                #
#===========================================================================================#
$FENIX = {}
$FENIX["Shadow in All Characters 1.0"] = true
if $FENIX["Shadow in All Characters 1.0"]
class Game_Event < Game_Character
def name
return @event.name
end
end
class Spriteset_Map
def create_shadow
@player_shadow = Sprite.new(@viewport1)
@player_shadow.bitmap = Cache.system("Shadow")
@player_shadow.x = $game_player.screen_x - @player_shadow.bitmap.width / 2 rescue @player_shadow.x = -@player_shadow.bitmap.width
@player_shadow.y = $game_player.screen_y - @player_shadow.bitmap.height + 5 + $game_map.airship.altitude rescue @player_shadow.y = -@player_shadow.bitmap.height
if $game_player.vehicle_type == 2
@player_shadow.opacity = $game_map.airship.altitude * 8
@player_shadow.z = 180
else
@player_shadow.opacity = 255
@player_shadow.opacity = 0 if $game_player.vehicle_type != -1
@player_shadow.z = 0
end
@event_shadow = []
for i in 1..$game_map.events.size
@event_shadow[i] = Sprite.new(@viewport1)
if $game_map.events[i].name == "SD"
@event_shadow[i].bitmap = Cache.system("")
else
@event_shadow[i].bitmap = Cache.system("Shadow")
end
@event_shadow[i].x = $game_map.events[i].screen_x - @event_shadow[i].bitmap.width / 2 rescue @event_shadow[i].x = -@event_shadow[i].bitmap.width
@event_shadow[i].y = $game_map.events[i].screen_y - @event_shadow[i].bitmap.height + 5 rescue @event_shadow[i].y = -@event_shadow[i].bitmap.height
end
end
def update_shadow
@player_shadow.x = $game_player.screen_x - @player_shadow.bitmap.width / 2 rescue @player_shadow.x = -@player_shadow.bitmap.width
@player_shadow.y = $game_player.screen_y - @player_shadow.bitmap.height + 5 + $game_map.airship.altitude rescue @player_shadow.y = -@player_shadow.bitmap.height
@player_shadow.update
if $game_player.vehicle_type == 2
@player_shadow.opacity = $game_map.airship.altitude * 8
@player_shadow.z = 180
else
@player_shadow.opacity = 255
@player_shadow.opacity = 0 if $game_player.vehicle_type != -1
@player_shadow.z = 0
end
if $game_player.vehicle_type != -1
$game_system.save_disabled = true
else
$game_system.save_disabled = false
end
for i in 1..$game_map.events.size
@event_shadow[i].x = $game_map.events[i].screen_x - @event_shadow[i].bitmap.width / 2 rescue @event_shadow[i].x = -@event_shadow[i].bitmap.width
@event_shadow[i].y = $game_map.events[i].screen_y - @event_shadow[i].bitmap.height + 5 rescue @event_shadow[i].y = -@event_shadow[i].bitmap.height
@event_shadow[i].update
end
end
def dispose_shadow
@player_shadow.dispose
for i in 1..$game_map.events.size
@event_shadow.dispose rescue nil
end
end
end
end
Dark Dudu
Dark Dudu


Masculino Número de Mensagens : 385
Idade : 30
Localização : São Vicente - SP
Especialidade : Eventos
Data de inscrição : 01/12/2008

RMB Games
Nível de Reputação: 2
Reputação:
[RGSS2] Script de Sombra Left_bar_bleue61/100[RGSS2] Script de Sombra Empty_bar_bleue  (61/100)
Gamescore:
[RGSS2] Script de Sombra Left_bar_bleue0/0[RGSS2] Script de Sombra Empty_bar_bleue  (0/0)

https://rmbrasil.forumeiros.com

Ir para o topo Ir para baixo

Ir para o topo

- Tópicos semelhantes

 
Permissões neste sub-fórum
Não podes responder a tópicos