Aldeia RPG

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

Suporte ao desenvolvimento de jogos


3 participantes

    Plataforma ON

    iCoke~
    iCoke~
    Membro Ativo
    Membro Ativo


    Medalhas : Plataforma ON Trophy12
    Mensagens : 268
    Créditos : 25

    Ficha do personagem
    Nível: 1
    Experiência:
    Plataforma ON Left_bar_bleue0/0Plataforma ON Empty_bar_bleue  (0/0)
    Vida:
    Plataforma ON Left_bar_bleue30/30Plataforma ON Empty_bar_bleue  (30/30)

    Plataforma ON Empty Plataforma ON

    Mensagem por iCoke~ Ter Set 20, 2011 10:49 pm

    Será que tem como compatibilizar pra NP ? e se tiver alguem faz pra mim O.o Ja tentei de tudo q eh jeito
    Código:
    module Gab
      module MovePlatform
        TOLERANCEX = 70 # Tolerância horizontal para ficar em cima da plataforma.
                        # Quanto maior, mais errado pode sair o pulo
      end
    end

    class Game_Player
      attr_accessor :real_x
      attr_accessor :real_y
      attr_accessor :p_lock
     
      alias gab_pfmove_update_y update_y unless $@

      def update_y(*a)
        if @p_lock
          g        = @gravity
          @gravity = 0
          ret = gab_pfmove_update_y(*a)
          @gravity = g
          return ret
        else
          return gab_pfmove_update_y(*a)
        end
      end

    end

    class Game_Event
      attr_accessor :player_lock
      attr_accessor :platform
     
      CONSTANT = Gab::MovePlatform
     
      alias gab_pfmove_refresh  refresh  unless $@
      alias gab_pfmove_update  update  unless $@
      alias gab_pfmove_update_x update_x unless $@
     
      def refresh(*a)
        gab_pfmove_refresh(*a)
        @platform = comments.any?{|i| i =~ /PLATAFORMA/i}
      end
     
      def update(*a)
        gab_pfmove_update(*a)
        update_player
      end
     
      def update_player
        return if !@platform
        m = (@real_x / 128.0 * 8).floor / 8
        n = ((@real_y - 128) / 128.0 * 8).floor / 8
        $game_player.p_lock = @player_lock = $game_player.x.between?(m - (CONSTANT::TOLERANCEX * 0.01), m + (CONSTANT::TOLERANCEX * 0.01)) && $game_player.y.between?(n - 0.950, n + 0.350)
      end
       
      def update_x(*a)
        ret = gab_pfmove_update_x(*a)
        $game_player.real_x = @real_x if @player_lock
        return ret
      end
     
      def comments
        return [] if @list.nil? || @list.empty?
        @list.inject([]){|a,b| a << b.parameters[0] if [108, 408].include?(b.code); a}
      end
    end
    DarkRoot
    DarkRoot
    Membro Ativo
    Membro Ativo


    Mensagens : 353
    Créditos : 31

    Plataforma ON Empty Re: Plataforma ON

    Mensagem por DarkRoot Qua Set 21, 2011 8:23 am

    tente isto: http://aldeiarpgbr.forumeiros.com/t389-supermario-em-rpgmaker-v11


    _________________
    Plataforma ON Bar-1
    RD12
    RD12
    Lenda
    Lenda


    Medalhas : Plataforma ON 48080450Plataforma ON Trophy11Plataforma ON GIueZPlataforma ON ZgLkiRU
    Mensagens : 1946
    Créditos : 745

    Plataforma ON Empty Re: Plataforma ON

    Mensagem por RD12 Qua Set 21, 2011 11:53 am

    também não da, pois o netplay tem incompatibilidades com eventos, ja tentei esse sistema de plataforma, tive que passar todas condições de teclas para condições de scripts, mesmo assim, ele não pulava direito.
    iCoke~
    iCoke~
    Membro Ativo
    Membro Ativo


    Medalhas : Plataforma ON Trophy12
    Mensagens : 268
    Créditos : 25

    Ficha do personagem
    Nível: 1
    Experiência:
    Plataforma ON Left_bar_bleue0/0Plataforma ON Empty_bar_bleue  (0/0)
    Vida:
    Plataforma ON Left_bar_bleue30/30Plataforma ON Empty_bar_bleue  (30/30)

    Plataforma ON Empty Re: Plataforma ON

    Mensagem por iCoke~ Qua Set 21, 2011 1:19 pm

    Aqui na aldeia tem um de plataforma ON mas tem 2 bugs,

    -1 ele pula baixo
    -2 ele não pula pro lado

    @DarkRoot vc disse que tinha esse sistema de plataforma ON sem bugs mas perdeu, vc lembra oque voce modificou nele ?

    EDIT :

    esses script aki ó :

    Código:
    # ▼▲▼ XRXS50. Action-Maps XC. ▼▲▼ built 033010
    # by 桜雅 在土

    #==============================================================================
    # □ カスタマイズポイント
    #==============================================================================
    class XRXS50
     #
     # Action-Maps を稼動させるマップIDの配列
     #
     ENABLE_FULL_ACTY_MAPS = [1, 2, 4]
     #
     # 「斜め降下」
     #
     ENABLE_SLIDE_DESCENT = true
     #
     # 向きジャンプ(true  : 向いている方向へジャンプ。
     #              false : キーが押されている方向へジャンプ。)
     #
     JUMP_AS_KEY = false
    end
    #==============================================================================
    # ■ Game_Player
    #==============================================================================
    class Game_Player < Game_Character
     #--------------------------------------------------------------------------
     # ○ 公開インスタンス変数
     #--------------------------------------------------------------------------
     # 既存
     attr_writer  :direction_fix
     attr_accessor :walk_anime
     # 新規
     attr_accessor :now_jumps
     attr_writer  :xrxs50_direction_sidefix
     #--------------------------------------------------------------------------
     # ○ 最大ジャンプ回数
     #--------------------------------------------------------------------------
     def max_jumps
      return 1
     end
     #--------------------------------------------------------------------------
     # ● 左を向く
     #--------------------------------------------------------------------------
     alias xrxs50_turn_left turn_left
     def turn_left
      if @xrxs50_direction_sidefix
        @direction = 4
      else
        xrxs50_turn_left
      end
     end
     #--------------------------------------------------------------------------
     # ● 右を向く
     #--------------------------------------------------------------------------
     alias xrxs50_turn_right turn_right
     def turn_right
      if @xrxs50_direction_sidefix
        @direction = 6
      else
        xrxs50_turn_right
      end
     end
    end
    #==============================================================================
    # ■ Scene_Map
    #==============================================================================
    class Scene_Map
     #--------------------------------------------------------------------------
     # ● メイン処理
     #--------------------------------------------------------------------------
     alias xrxs50_main main
     def main
      # チェック
      xrxs50_enable_check
      # 呼び戻す
      xrxs50_main
     end
     #--------------------------------------------------------------------------
     # ● フレーム更新
     #--------------------------------------------------------------------------
     alias xrxs50_update update
     def update
      # 呼び戻す
      xrxs50_update
      # フレーム更新 (座標系更新)
      if @xrxs50_enable
        update_coordinates
      end
     end
     #--------------------------------------------------------------------------
     # ○ フレーム更新 (座標系更新)
     #--------------------------------------------------------------------------
     def update_coordinates
      if $game_player.passable?($game_player.x,$game_player.y,2)
        unless $game_player.moving?
          if XRXS50::ENABLE_SLIDE_DESCENT and
              Input.press?(Input::RIGHT) and
              $game_player.passable?($game_player.x,$game_player.y+1,6)
            $game_player.move_lower_right
          elsif XRXS50::ENABLE_SLIDE_DESCENT and
                Input.press?(Input::LEFT) and
                $game_player.passable?($game_player.x,$game_player.y+1,4)
            $game_player.move_lower_left
          else
            $game_player.move_down
          end
        end
      else
        $game_player.move_down
        $game_player.walk_anime = true unless $game_player.walk_anime
        $game_player.now_jumps  = 0
        if Input.trigger?(Input::X) and
            $game_player.now_jumps < $game_player.max_jumps
          if XRXS50::JUMP_AS_KEY
            direction = $game_player.direction == 4 ? -1 : 1
          else
            if Input.press?(Input::RIGHT)
              direction = 1
            elsif Input.press?(Input::LEFT)
              direction = -1
            else
              direction = 0
            end
          end
          $game_player.jump(direction, -2)
          $game_player.now_jumps += 1
          $game_player.walk_anime = false
        end
      end
     end
     #--------------------------------------------------------------------------
     # ● プレイヤーの場所移動
     #--------------------------------------------------------------------------
     alias xrxs50_transfer_player transfer_player
     def transfer_player
      # 呼び戻す
      xrxs50_transfer_player
      # チェック
      xrxs50_enable_check
     end
     #--------------------------------------------------------------------------
     # ○ XRXS50 が稼動するか判定
     #--------------------------------------------------------------------------
     def xrxs50_enable_check
      if XRXS50::ENABLE_FULL_ACTY_MAPS.include?($game_map.map_id)
        $game_player.now_jumps = 0 if $game_player.now_jumps.nil?
        @xrxs50_enable = true
        $game_player.direction_fix = true
        $game_player.xrxs50_direction_sidefix = true
      else
        @xrxs50_enable = false
        $game_player.direction_fix = false
        $game_player.xrxs50_direction_sidefix = false
      end
     end
    end
    DarkRoot
    DarkRoot
    Membro Ativo
    Membro Ativo


    Mensagens : 353
    Créditos : 31

    Plataforma ON Empty Re: Plataforma ON

    Mensagem por DarkRoot Sáb Set 24, 2011 9:48 am

    Sim.

    Editei praticamente todas as Classes para torna-lo compativel com o ABS e C'est Fin'e mas a preguiça não deixa eu faze-lo novamente.



    @RD12

    RMX-OS por exemplo não tem este tipo de incompatibilidade.


    _________________
    Plataforma ON Bar-1
    iCoke~
    iCoke~
    Membro Ativo
    Membro Ativo


    Medalhas : Plataforma ON Trophy12
    Mensagens : 268
    Créditos : 25

    Ficha do personagem
    Nível: 1
    Experiência:
    Plataforma ON Left_bar_bleue0/0Plataforma ON Empty_bar_bleue  (0/0)
    Vida:
    Plataforma ON Left_bar_bleue30/30Plataforma ON Empty_bar_bleue  (30/30)

    Plataforma ON Empty Re: Plataforma ON

    Mensagem por iCoke~ Sáb Set 24, 2011 9:52 am

    skoskpsk, pode trancar então ;x

    Conteúdo patrocinado


    Plataforma ON Empty Re: Plataforma ON

    Mensagem por Conteúdo patrocinado


      Data/hora atual: Qui Mar 28, 2024 4:33 pm