Skip to content

Commit

Permalink
Merge pull request #144 from tecMTST/139-bug-personagem-não-se-levant…
Browse files Browse the repository at this point in the history
…a-depois-de-abaixar

Correções feitas na ação de se abaixar.
  • Loading branch information
mihailov-vf authored Sep 3, 2024
2 parents eecf826 + fd389bc commit b0b30d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions projeto/addons/controles3D/ControleFaixa3D.gd
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export var aceleracao_queda = 1.5
export var desaceleracao_queda = 2.5
export var altura_pulo = 3
export var tempo_abaixado = 1.0
export var abaixar_infinito = true
export var abaixar_infinito = false

#Faixas
export(Array, Vector3) var faixas = []
Expand Down Expand Up @@ -125,7 +125,9 @@ func levantar():
emit_signal('levantou')

func pular():
if not em_movimento and not pulando and not caindo and not abaixado:
if abaixado:
levantar()
if not em_movimento and not pulando and not caindo:
_destravar_posicao()
alvo = Vector3(faixas[posicao_atual].x, faixas[posicao_atual].y + altura_pulo, parent.global_position.z)
ultima_distancia = DISTANCIA_MAXIMA
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ content_margin_left = 10.0
content_margin_right = 10.0
content_margin_top = 10.0
content_margin_bottom = 10.0
bg_color = Color( 0.364706, 0.396078, 0.486275, 1 )
bg_color = Color( 0.2, 0.23, 0.31, 1 )
border_width_left = 1
border_width_top = 1
border_width_right = 1
Expand Down

0 comments on commit b0b30d8

Please sign in to comment.