Últimos temas
» Script de menupor maxi Jue 04 Dic 2014, 1:44 pm
» Ayuda intro animado!!!
por maxi Miér 03 Dic 2014, 9:41 pm
» ayuda con este engin
por maxi Miér 03 Dic 2014, 8:42 am
» Hud de Vida 100% Personalizable - Engine Sencillo! Sin Scripts :)
por davidaikago Jue 20 Nov 2014, 10:58 am
» Ultimate parallax control by:GDS [ace]
por arellano Miér 08 Oct 2014, 8:28 pm
» Script Touhou (animated) Map name (v1.4)
por davidaikago Miér 08 Oct 2014, 2:09 pm
» tutorial puerta nueva
por davidaikago Miér 08 Oct 2014, 9:08 am
» cámara de fotos
por davidaikago Miér 08 Oct 2014, 9:05 am
» Imperial Action System II Demo
por davidaikago Miér 08 Oct 2014, 8:47 am
» VE Batalla animada [ACE]
por FhierusIV Jue 18 Sep 2014, 10:57 am
» Nuevo Reglamento del Foro [Vigente desde Septiembre 2014]
por maxi Miér 17 Sep 2014, 8:37 am
» MOG|Animated Title
por Souta21 Mar 09 Sep 2014, 7:24 pm
» Tutorial Engine - Cambiar Character al Equipar Objeto
por maxi Lun 21 Jul 2014, 10:19 am
» Script de climas
por gambasoxd Sáb 19 Jul 2014, 8:58 am
» Script de contraseña(codigo) para abrir un cofre
por rpgame Jue 03 Jul 2014, 6:03 pm
¿Quién está en línea?
En total hay 1 usuario en línea: 0 Registrados, 0 Ocultos y 1 Invitado Ninguno
El record de usuarios en línea fue de 117 durante el Mar 09 Ago 2011, 3:39 pm
Mover la Camara
4 participantes
RPG maker VX :: Scripts ::
Página 1 de 1.
Mover la Camara
Hola Amigos Mios Maxinm vuelve a publicar otro Script: Aqui Va
Nombre del Script: Movimiento de Camara
Efecto: Mover la camara, en 4 direcciones
Creador: Yo Mismo, (Maxinm) XD
Demo: NO
Imagenes Necesesarias: SI
[Tienes que estar registrado y conectado para ver esa imagen]
Nombrarla: abajo
[Tienes que estar registrado y conectado para ver esa imagen]
Nombrarla: arriba
[Tienes que estar registrado y conectado para ver esa imagen]
Nombrarla: der
[Tienes que estar registrado y conectado para ver esa imagen]
Nombrarla: izq
SCRIPT:
Nombre del Script: Movimiento de Camara
Efecto: Mover la camara, en 4 direcciones
Creador: Yo Mismo, (Maxinm) XD
Demo: NO
Imagenes Necesesarias: SI
[Tienes que estar registrado y conectado para ver esa imagen]
Nombrarla: abajo
[Tienes que estar registrado y conectado para ver esa imagen]
Nombrarla: arriba
[Tienes que estar registrado y conectado para ver esa imagen]
Nombrarla: der
[Tienes que estar registrado y conectado para ver esa imagen]
Nombrarla: izq
SCRIPT:
- Código:
# ----------- SISTEMA DE MOVIMIENTO DE LA CAMARA -------------
#
# Creado Por: Maxinm
#
# Efecto: Mover La Camara en el Mapa, Hacia las 4 direcciones.
#
# Tecla: "A" --- (Del Teclado)
#
# Imágenes Requeridas: SI (En System)
#
#
#
# DESDE ACA #
module Camara
Button = Input::X
Speed = 5
#Hasta Aca #
end
$xrxs = {} if $xrxs == nil
class Game_System
attr_accessor :camara
alias maxinmscroll_initialize initialize
def initialize
maxinmscroll_initialize
@camara = false
end
end
class Active_Arrow
def initialize
@arrow_up = Sprite.new
@arrow_up.bitmap = Cache.system("arriba")
@arrow_up.x = 70
@arrow_up.y = 105
@arrow_up.z = 0
@arrow_up.angle = 0
@arrow_up.visible = false
@arrow_left = Sprite.new
@arrow_left.bitmap = Cache.system("izq")
@arrow_left.x = 50
@arrow_left.y = 85
@arrow_left.z = 0
@arrow_left.angle = 0
@arrow_left.visible = false
@arrow_down = Sprite.new
@arrow_down.bitmap = Cache.system("abajo")
@arrow_down.x = 70
@arrow_down.y = 75
@arrow_down.z = 0
@arrow_down.visible = false
@arrow_right = Sprite.new
@arrow_right.bitmap = Cache.system("der")
@arrow_right.x = 90
@arrow_right.y = 90
@arrow_right.z = 0
@arrow_right.angle = 0
@arrow_right.visible = false
end
def update
if $game_system.camara == true
case Input.dir4
when 2
@arrow_up.zoom_x = 1; @arrow_up.zoom_y = 1
@arrow_left.zoom_x = 1; @arrow_left.zoom_y = 1
@arrow_right.zoom_x = 1; @arrow_right.zoom_y = 1
@arrow_down.zoom_x = 1.4; @arrow_down.zoom_y = 1.4
when 4
@arrow_up.zoom_x = 1; @arrow_up.zoom_y = 1
@arrow_right.zoom_x = 1; @arrow_right.zoom_y = 1
@arrow_down.zoom_x = 1; @arrow_down.zoom_y = 1
@arrow_left.zoom_x = 1.4; @arrow_left.zoom_y = 1.4
when 6
@arrow_up.zoom_x = 1; @arrow_up.zoom_y = 1
@arrow_left.zoom_x = 1; @arrow_left.zoom_y = 1
@arrow_down.zoom_x = 1; @arrow_down.zoom_y = 1
@arrow_right.zoom_x = 1.4; @arrow_right.zoom_y = 1.4
when 8
@arrow_left.zoom_x = 1; @arrow_left.zoom_y = 1
@arrow_right.zoom_x = 1; @arrow_right.zoom_y = 1
@arrow_down.zoom_x = 1; @arrow_down.zoom_y = 1
@arrow_up.zoom_x = 1.4; @arrow_up.zoom_y = 1.4
end
end
if $game_system.camara == true
@arrow_up.visible = true
@arrow_left.visible = true
@arrow_down.visible = true
@arrow_right.visible = true
else
@arrow_up.visible = false
@arrow_left.visible = false
@arrow_down.visible = false
@arrow_right.visible = false
end
end
def dispose
@arrow_up.dispose
@arrow_up.bitmap.dispose
@arrow_left.dispose
@arrow_left.bitmap.dispose
@arrow_down.dispose
@arrow_down.bitmap.dispose
@arrow_right.dispose
@arrow_right.bitmap.dispose
end
end
class Game_Player < Game_Character
include Camara
alias maxinmcamara_update update
def update
maxinmcamara_update
if Input.trigger?(Button) and @camera_action == nil
if $xrxs["xas"] == true
$game_switches[6] = true
$game_map.refresh
end
@walk_anime = false
$game_system.camara = true
@camera_action = 1
elsif Input.trigger?(Button) and @camera_action == 1
center(x, y)
if $xrxs["xas"] == true
$game_switches[6] = false
$game_map.refresh
end
@move_speed = 4
@walk_anime = true
$game_system.camara = false
@camera_action = nil
end
if $game_system.camara == true
@move_speed = -20
case Input.dir4
when 2
turn_down
$game_map.start_scroll(2, 1,Speed)
when 4
turn_left
$game_map.start_scroll(4, 1,Speed)
when 6
turn_right
$game_map.start_scroll(6, 1,Speed)
when 8
turn_up
$game_map.start_scroll(8, 1,Speed)
end
end
end
end
class Scene_Map
alias maxinmscroll_main main
def main
@arrow_active = Active_Arrow.new
maxinmscroll_main
@arrow_active.dispose
end
alias maxinmscroll_update update
def update
@arrow_active.update
maxinmscroll_update
end
end
maxi- Moderador
-
28
908
1673
156
Extras
Sobre mí:: ¿Necesitas Una Mano en el Maker VX o VX ACE? ¡Ponte en Contacto Conmigo! :)
Re: Mover la Camara
Mmm, el scrpt se bien, pero... Eso se puede hacer con eventos, en scroll de camara o algo asi xD
Bueno, a menos que me equivoque, pero el nombre y lo que dice se ve muy similar (a exepsion de que salga la flechita xD)
Buen aporte, por el esfuerzo (Y porque probablemente lo vaya a usar :P dando creditos) rte dejo un +1 , Vale?
Salu2
Bueno, a menos que me equivoque, pero el nombre y lo que dice se ve muy similar (a exepsion de que salga la flechita xD)
Buen aporte, por el esfuerzo (Y porque probablemente lo vaya a usar :P dando creditos) rte dejo un +1 , Vale?
Salu2
ZChang- 300
-
26
307
147
7
Extras
Sobre mí:: ...
Re: Mover la Camara
Este Script Si cumple las reglas, no como otros que eh visto ultimamente (¬¬).
ClubIce- 220
-
27
253
361
38
Re: Mover la Camara
¿Es posible poner un número límite para moverse por los mapas? Es interesante, pero no me gusta que vean el mapa entero antes de llegar a ese lugar, si es así, ¿ podrían decírmelo?
Un saludo
Un saludo
Oportuno- 50
-
29
103
136
3
Extras
Sobre mí::
RPG maker VX :: Scripts ::
Página 1 de 1.
Permisos de este foro:
No puedes responder a temas en este foro.