Últimos temas
» [RMXP] Bug Chronicles
Lun Jun 16, 2008 10:23 pm por .::KokeRPG::.

» Poner serial a tu juego
Dom Jun 08, 2008 9:27 pm por 6gb

» [Pixel CutrArt] Espada Dragón
Sáb Mayo 31, 2008 11:03 pm por Caistsa

» Wenas! Xion al foro !
Sáb Mayo 31, 2008 11:01 pm por Caistsa

» Olaaaa soy nuevo
Mar Mayo 27, 2008 9:14 am por xion

» Ola a todos..!! hehe
Lun Mayo 19, 2008 4:05 pm por Caistsa

» 1º Concurso de poesía Abril
Dom Mayo 18, 2008 2:52 pm por Caistsa

» [Tutorial-PS] Efecto Plástico en Letras
Dom Mayo 18, 2008 2:47 pm por Caistsa

» [Tutorial-PS] Fondo Matrix
Dom Mayo 18, 2008 1:44 pm por .::KokeRPG::.

Navegación
 Portal
 Índice
 Miembros
 Perfil
 FAQ
 Buscar
Compañeros
Buscar
 
 

Resultados por:
 


Rechercher Búsqueda avanzada

Anti Lag(Near Fantastica)

Jue Feb 21, 2008 10:54 pm por Caistsa

Este script reduce el lag en nuestro juego^^.

Este es el script:

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


Ponedlo encima de main y ya esta^^.
Creditos->Near Fantastica

Comentarios: 3

Sondeo
¿Quién está en línea ?
En total hay 1 usuario en línea: 0 Registrados, 0 Ocultos y 1 Huésped


Usuarios registrados: Ninguno


[ Ver toda la lista ]


La mayor cantidad de usuarios en línea fue 4 el Vie Mar 14, 2008 7:04 pm.
Estadísticas
Tenemos 23 usuarios registrados.
El último usuario registrado es larita.

Nuestros usuarios han publicado un total de 644 mensajes. en 182 argumentos.