Shop Dream Maker
Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.
Shop Dream Maker

Ajudando a Criar seu Sonho!
 
InícioInício  Shop Dream MakeShop Dream Make  Últimas imagensÚltimas imagens  ProcurarProcurar  RegistarRegistar  Entrar  

 

 [RGSS2] Advanced Jump

Ir para baixo 
2 participantes
AutorMensagem
Mr.Matt
Arcanjos
Arcanjos
Mr.Matt


Masculino Mensagens : 80
Data de inscrição : 29/08/2011
Idade : 26
Localização : Ao lado do meu vizinho

[RGSS2] Advanced Jump Empty
MensagemAssunto: [RGSS2] Advanced Jump   [RGSS2] Advanced Jump EmptySex Set 02, 2011 2:39 pm

Advanced Jump
.::Por Sandgolem::.

Características: Faz com que o personagem pule com som. Cereal Guy

Instruções: Copie e Cole acima do MAIN, para pular aperte Shift, para correr, em quanto estiver em movimento aperte shift.

Screens: Não necessário. ookay

Script:
Código:
#==============================================================================#
#                          ** Jump Around 2.0 **                              #
#==============================================================================#
#                                                                              #
#  Versão 1.0 por sandgolem                                                    #
#  30/1/2008                                                                  #
#                                                                              #
#  Versão 2.0 por CarlosST                                                    #
#  1/7/2010                                                                    #
#  (Correção de bug de switch)                                                #
#                                                                              #
#==============================================================================#
module GameBaker
  JumpDisable = 7 # Switch que desativa a função de pulo #
  JumpSE = RPG::SE.new('Jump1') # SE de pulo #
  JumpTrigger = Input::A # Botão que se aperta para pular #
end
#==============================================================================#
#                            Class Game_Player                                #
#==============================================================================#
class Game_Player
  def gamebaker_jumpeffect(x,y)
    GameBaker::JumpSE.play
    sg = RPG::MoveRoute.new
    sg.repeat = false
    sg.wait = true
    if !passable?(@x + x, @y + y)
      if !passable?(@x + (x / 2), @y + (y / 2))
        x = 0; y = 0
      else
        x = x / 2; y = y / 2
      end
    end
    sg.list = [RPG::MoveCommand.new(37)] if !@through
    sg.list += [RPG::MoveCommand.new(14,[x,y])]
    sg.list += [RPG::MoveCommand.new(38)] if !@through
    sg.list += [RPG::MoveCommand.new]
    $game_player.force_move_route(sg)
  end
  alias gamebaker_jumparound_update update
  def update
    gamebaker_jumparound_update
    if Input.trigger?(GameBaker::JumpTrigger) && !moving? && !jumping?
      if $game_switches[GameBaker::JumpDisable] == true
        gamebaker_jumpeffect(0, 2) if direction == 2
        gamebaker_jumpeffect(-2, 0) if direction == 4
        gamebaker_jumpeffect(2, 0) if direction == 6
        gamebaker_jumpeffect(0, -2) if direction == 8
      end
    end
  end
end
Ir para o topo Ir para baixo
Siquieri
Principados
Principados
Siquieri


Masculino Mensagens : 65
Data de inscrição : 31/08/2011
Idade : 38
Localização : Canada

[RGSS2] Advanced Jump Empty
MensagemAssunto: Re: [RGSS2] Advanced Jump   [RGSS2] Advanced Jump EmptyDom Set 04, 2011 8:32 am

Bem simples, e legal!!
Acho que vou tentar adaptar para XP.

Obrigado por dispor.

Reputação + 1
Ir para o topo Ir para baixo
http://google.com
 
[RGSS2] Advanced Jump
Ir para o topo 
Página 1 de 1
 Tópicos semelhantes
-
» Aula de RGSS2 1# Introdução # O início

Permissões neste sub-fórumNão podes responder a tópicos
Shop Dream Maker :: Scripts ||RGSS||RGSS2||-
Ir para: