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


    Custom Movement Event Update Bug fix

    Valentine
    Valentine
    Administrador
    Administrador


    Medalhas : Custom Movement Event Update Bug fix ZgLkiRU
    Mensagens : 5336
    Créditos : 1163

    Custom Movement Event Update Bug fix Empty Custom Movement Event Update Bug fix

    Mensagem por Valentine Seg maio 21, 2018 12:39 pm

    Qual o problema?
    Basicamente, quando um evento que usa uma custom move route (movimento de evento customizado) está fora da tela, VXAce para de atualizar o evento para prevenir lag.

    Script:
    Código:
    # Put [update] in the event's name and the move route will always update.
    #
    # ~Kread
    class Game_Event < Game_Character
    #--------------------------------------------------------------------------
    # * Determine if Near Visible Area of Screen
    #--------------------------------------------------------------------------
      alias_method(:krx_alfix_ge_nts?, :near_the_screen?)
      def near_the_screen?(dx = 12, dy = 8)
        # YEA compatibility
        if $imported && $imported["YEA-CoreEngine"]
          dx = dy = nil
        end # YEA compatibility
        return true if @event.name.include?('[update]')
        return krx_alfix_ge_nts?(dx, dy)
      end
    end

    Créditos:
    Kread

      Data/hora atual: Seg maio 20, 2024 12:13 am