[RGSS2] Script de Sombra
Página 1 de 1
[RGSS2] Script de Sombra
Script de Sombra
Bom, basta colocar acima de main
Créditos
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- 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:
(61/100)
Gamescore:
(0/0)
Tópicos semelhantes
» [RGSS2] Script de reputação de bom e mal...
» [RGSS2] Eon HUD
» [RGSS] Script simples de correr
» [RGSS2] HP e SP no Mapa
» [RGSS2] Anti-Lag
» [RGSS2] Eon HUD
» [RGSS] Script simples de correr
» [RGSS2] HP e SP no Mapa
» [RGSS2] Anti-Lag
Página 1 de 1
Permissões neste sub-fórum
Não podes responder a tópicos