Emudesc en Facebook!RSS

Retroceder   Foros de Emudesc > Crea tus propios juegos > RPG Maker > Scripts

Respuesta
 
Herramientas
  #1  
Antiguo 24-jul-2011, 11:44
Newbie
 
Fecha de Ingreso: junio-2011
Mensajes: 27
ClarkCLK se está dando a conocer
Predeterminado Correr con salto y supersalto by Clark-CLK V1.1 (RPGXP)

Correr con salto y salto fuerte V1.1 by Clark-CLK
Introducción:
Este script te permite hacer que el personaje corra a una velocidad y teclas personalizadas. Tambien incuye la función de salto (Personalizable) y salto fuerte (que se ejecuta al pulsar la tecla de salto mientras se corre).

Créditos: Clark-CLK

Script:
Código:
#===============================================================================
#
# Script: Correr con salto V1.1
# Autor: Clark-CLK (Créditos, por favor)
# Versión: 1.1
# Fecha de creación: 12/07/12 (dd.mm.yy)
# Instrucciones: Copiar y pegar encima de main. Personalizar a gusto <img src="http://s41.ucoz.net/sm/19/smile.gif" border="0" align="absmiddle" alt="smile" />
# Mas scripts, tutos, RPG MAKER en: http://ahoperpg-maker.ucoz.es  
# Agradecimientos especiales a NewOld por su ayuda con un bug.
#
#===============================================================================

=begin
                           Tabla de correspondencia.
     Teclado #Z, Shift #Esc., 0, X #C, Space, Enter #A #S #D #Q #W #  
     RGSS    #A        #B          #C               #X #Y #Z #L #R #
=end

module Clark_System
   # Tecla de correr. Mirar tabla de correspondencia.
   Correr_Input = Input::Y
   # Tecla de salto. Mirar tabla de correspondencia.
   Saltar_Input = Input::C
   # Velocidad al correr.
   Correr_Speed = 5.4
   # Velocidad al caminar normal.
   Normal_Speed = 4.0
   # Potencia del salto normal.
   Normal_Jump = 8
   # Potencia del salto fuerte
   Strong_Jump = 10
end

class Game_Character
def jumpa(x_plus, y_plus, high)
     if x_plus != 0 or y_plus != 0
       if x_plus.abs > y_plus.abs
         x_plus < 0 ? turn_left : turn_right
       else
         y_plus < 0 ? turn_up : turn_down
       end
     end
     new_x = @x + x_plus
     new_y = @y + y_plus
     if (x_plus == 0 and y_plus == 0) or passable?(new_x, new_y, 0)
       straighten
       @x = new_x
       @y = new_y
       distance = Math.sqrt(x_plus * x_plus + y_plus * y_plus).round
       @jump_peak = high + distance - @move_speed
       @jump_count = @jump_peak * 2
       @stop_count = 0
     end
   end
end

class Game_Player < Game_Character
   alias correr_salto_update update
   def update
     if Input.press? (Clark_System::Correr_Input)
       @move_speed = Clark_System::Correr_Speed   
       if Input.trigger? (Clark_System::Saltar_Input)
         if @direction == 2
           jump_down_strong
         end
         if @direction == 4
           jump_left_strong
         end
         if @direction == 6  
           jump_right_strong
         end
         if direction == 8
           jump_up_strong
         end
       end
     elsif  
       @move_speed = Clark_System::Normal_Speed
       if Input.trigger? (Clark_System::Saltar_Input)
         if @direction == 2
           jump_down
         end
         if @direction == 4
           jump_left
         end
         if @direction == 6  
           jump_right
         end
         if direction == 8
           jump_up
         end
       end
     end
     def jump_down
       jumpa (0, 2, Clark_System::Normal_Jump)
     end  
     def jump_left
       jumpa (-2, 0, Clark_System::Normal_Jump)
     end
     def jump_right
       jumpa (2, 0, Clark_System::Normal_Jump)
     end
     def jump_up
       jumpa (0, -2, Clark_System::Normal_Jump)
     end
     def jump_down_strong
       jumpa (0, 4, Clark_System::Strong_Jump)
     end
     def jump_left_strong
       jumpa (-4, 0, Clark_System::Strong_Jump)
     end
     def jump_right_strong
       jumpa (4, 0, Clark_System::Strong_Jump)
     end
     def jump_up_strong
       jumpa (0, -4, Clark_System::Strong_Jump)     
     end
   correr_salto_update
   end
end
Wong Wong!!

P.D: Acuerdense de darme créditos por el script


Responder Con Cita
  #2  
Antiguo 26-oct-2012, 00:55
Avatar de vaquished
Advanced Newbie
 
Fecha de Ingreso: julio-2012
Mensajes: 74
vaquished nuevo en la comunidad
Predeterminado Re: Correr con salto y supersalto by Clark-CLK V1.1 (RPGXP)

no puedo personalisar las teclas si pudieras explicarme mejor te lo agradeceria
Responder Con Cita
  #3  
Antiguo 26-oct-2012, 05:33
Avatar de One.
Silver User
 
Fecha de Ingreso: marzo-2012
Ubicación: The Thunder temple.
Mensajes: 942
One. tiene un gran potencial
Injenuo! : P No seas! Y sigues?
Predeterminado Re: Correr con salto y supersalto by Clark-CLK V1.1 (RPGXP)

Cita:
Empezado por vaquished Ver Mensaje
no puedo personalisar las teclas si pudieras explicarme mejor te lo agradeceria

Debes pegar el script sobre Main* y perzonalizarlas en el script al principio...
Luego, le das aplicar y aceptar, y lo pruebas...
EDIT: Mira la tabla de correspondencia.
Responder Con Cita
Respuesta



Temas Similares para: Correr con salto y supersalto by Clark-CLK V1.1 (RPGXP)
Tema Autor Foro Respuestas Último mensaje
Varios engines by Clark-CLK ClarkCLK Scripts 9 17-dic-2011 21:51
[XP/VX] Engine SBP Lateral V1.0 by Clark-CLK ClarkCLK Scripts 3 12-jul-2011 17:18
Scripts varios by Clark-CLK [XP] ClarkCLK Scripts 0 11-jul-2011 16:05
Clark-CLK llega a EMD ^^ ClarkCLK Presentaciones 11 13-jun-2011 14:23
Elegant Clark Signature. .Kuja Exposición de diseños 3 06-jun-2009 19:16


La franja horaria es GMT +1. La hora actual es: 21:28.


Powered by vBulletin®


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93