PlatinuMie
¿Quieres reaccionar a este mensaje? Regístrate en el foro con unos pocos clics o inicia sesión para continuar.

PlatinuMie

Foro sobre juegos rol, anime, rpg maker y mas
 
ÍndicePortalÚltimas imágenesBuscarRegistrarseConectarse

 

 Antilag v 3.0-Near Fantastica

Ir abajo 
AutorMensaje
Mie-Noir-ForPlatinum-
HinataHokage -Admin-
HinataHokage -Admin-
Mie-Noir-ForPlatinum-


Mensajes : 92
Fecha de inscripción : 12/09/2008
Edad : 30
Localización : With my love..

Hoja de personaje
Personaje:
Antilag v 3.0-Near Fantastica Left_bar_bleue100/100Antilag v 3.0-Near Fantastica Empty_bar_bleue  (100/100)
Nombre: Hatake Kanashi
Raza: Elfo/a

Antilag v 3.0-Near Fantastica Empty
MensajeTema: Antilag v 3.0-Near Fantastica   Antilag v 3.0-Near Fantastica Icon_minitimeSáb Sep 13, 2008 11:47 am

Código:

#==============================================================================
# ** Anti Event Lag script
#==============================================================================
# Near Fantastica
# Version 3
# 29.11.05
#==============================================================================
# The Anti Event Lag script reduces the Lag in RMXP cause by events dramatically
# It dose this by limiting process updating and graphic updating for events
# outside the view of the screen. Events that are parallel process or auto-start
# are not effected by this script.
#==============================================================================

class Game_Map
#--------------------------------------------------------------------------
def in_range?(object)
screne_x = $game_map.display_x
screne_x -= 256
screne_y = $game_map.display_y
screne_y -= 256
screne_width = $game_map.display_x
screne_width += 2816
screne_height = $game_map.display_y
screne_height += 2176
return false if object.real_x <= screne_x
return false if object.real_x >= screne_width
return false if object.real_y <= screne_y
return false if object.real_y >= screne_height
return true
end
#--------------------------------------------------------------------------
def update_events
for event in @events.values
if in_range?(event) or event.trigger == 3 or event.trigger == 4
event.update
end
end
end
end

#============================================================================
# ** Spriteset_Map
#============================================================================

class Spriteset_Map
#--------------------------------------------------------------------------
def in_range?(object)
screne_x = $game_map.display_x
screne_x -= 256
screne_y = $game_map.display_y
screne_y -= 256
screne_width = $game_map.display_x
screne_width += 2816
screne_height = $game_map.display_y
screne_height += 2176
return false if object.real_x <= screne_x
return false if object.real_x >= screne_width
return false if object.real_y <= screne_y
return false if object.real_y >= screne_height
return true
end
#--------------------------------------------------------------------------
def update_character_sprites
for sprite in @character_sprites
if sprite.character.is_a?(Game_Event)
if in_range?(sprite.character) or sprite.character.trigger == 3 or sprite.character.trigger == 4
sprite.update
end
else
sprite.update
end
end
end
end
Volver arriba Ir abajo
https://platinumie.foroes.org
 
Antilag v 3.0-Near Fantastica
Volver arriba 
Página 1 de 1.

Permisos de este foro:No puedes responder a temas en este foro.
PlatinuMie :: Rpg Maker XP :: Scripts-
Cambiar a: