Make Private Servers
Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.

Make Private Servers

Suporte para criação e administração de servidores criados apartir do RPG maker VX/XP ou outras engines.Divulgação de seu servidor ou jogo offline.
 
PortalInícioProcurarÚltimas imagensRegistarEntrar

 

 Advanced Jump

Ir para baixo 
AutorMensagem
Moura
Admin
Admin
Moura


Mensagens : 26
Reputação : 1
Data de inscrição : 23/07/2011
Idade : 27
Localização : Amapá

Advanced Jump Empty
MensagemAssunto: Advanced Jump   Advanced Jump Icon_minitimeQua Jul 27, 2011 2:18 am

Advanced Jump


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

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.

Script:

Código:

#==========================================================================
# ** Jump Around
#==========================================================================
# by sandgolem
# Janeiro 30th, 2008
#==========================================================================
module GameBaker
  JumpDisable = 2 #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 = [RPGMoveCommand.new(37)] if !@through
    sg.list += [RPGMoveCommand.new(14,[x,y])]
    sg.list += [RPGMoveCommand.new(38)] if !@through
    sg.list += [RPGMoveCommand.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?
      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
Ir para o topo Ir para baixo
http://mpservers.directorioforuns.com
 
Advanced Jump
Ir para o topo 
Página 1 de 1
 Tópicos semelhantes
-
» Jump 2.0 Correr e Pular

Permissões neste sub-fórumNão podes responder a tópicos
Make Private Servers :: RPG Maker VX :: Scripts-
Ir para: