Bem vindo visitante.
Caso ainda não tenha uma conta,pedimos para que crie uma,assim você terá acesso a todos os links e imagens disponíveis no fórum.
Bem vindo visitante.
Caso ainda não tenha uma conta,pedimos para que crie uma,assim você terá acesso a todos os links e imagens disponíveis no fórum.

Você não está conectado. Conecte-se ou registre-se

Player Atravessando Player

Ir para baixo  Mensagem [Página 1 de 1]

1Player Atravessando Player Empty Player Atravessando Player Dom Fev 19, 2012 8:20 pm

thales12

thales12
Moderador Global
Moderador Global

a pedido de 2 pessoas aki da mmo eu fiz o tuto de como atrevessar o player.
bom e simples e facil ..

Abra o Client~Side e na modGameLogic procure por:

Código:
' Check to see if a player is already on that tile
    For i = 1 To Player_HighIndex
        if IsPlaying(i) And GetPlayerMap(i) = GetPlayerMap(MyIndex) Then
            If GetPlayerX(i) = x Then
                If GetPlayerY(i) = y Then
                    CheckDirection = True
                  Exit Function
              End If
            End If
        End If
    Next i


e mude para:

Código:
' Check to see if a player is already on that tile
  '  For i = 1 To Player_HighIndex
        'if IsPlaying(i) And GetPlayerMap(i) = GetPlayerMap(MyIndex) Then
          '  If GetPlayerX(i) = x Then
        '        If GetPlayerY(i) = y Then
      '            CheckDirection = True
      '              Exit Function
    '          End If
    '        End If
  '    End If
  '  Next i

Créditos: Thales12 por fazer o tutorial.

Ir para o topo  Mensagem [Página 1 de 1]

Permissões neste sub-fórum
Não podes responder a tópicos