mirror of
https://github.com/creyD/ludum_dare_46.git
synced 2026-06-11 21:22:22 +02:00
fixed placer movement
This commit is contained in:
@@ -49,25 +49,28 @@ func _physics_process(delta):
|
||||
while(totaldamage < -1):
|
||||
totaldamage+=1
|
||||
player_stats.health+=1
|
||||
adjustPrio(player_stats.health, player_stats.max_health)
|
||||
#adjustPrio(player_stats.health, player_stats.max_health)
|
||||
_debug_update()
|
||||
if debug == true:
|
||||
match movementState:
|
||||
moveState.MOVE:
|
||||
movement_move(delta)
|
||||
moveState.IDLE:
|
||||
movement_move(delta)
|
||||
moveState.ROLL:
|
||||
movement_roll()
|
||||
moveState.HIT:
|
||||
movement_hit()
|
||||
elif movementState == moveState.ROLL:
|
||||
movement_roll()
|
||||
elif movementState == moveState.HIT:
|
||||
movement_hit()
|
||||
elif movementState == moveState.IDLE:
|
||||
movement_idle()
|
||||
else:
|
||||
movement_run(Vector2(0,0), delta)
|
||||
makeMove(delta)
|
||||
if movementState == moveState.ROLL:
|
||||
movement_roll()
|
||||
elif movementState == moveState.HIT:
|
||||
movement_hit()
|
||||
elif movementState == moveState.IDLE:
|
||||
movement_idle()
|
||||
else:
|
||||
movement_run(Vector2(0,0), delta)
|
||||
makeMove(delta)
|
||||
move()
|
||||
|
||||
# IMPORTANT: If you are using move_and_slide don't multiply by delta
|
||||
|
||||
@@ -34,6 +34,7 @@ position = Vector2( 152, 120 )
|
||||
[node name="Player" parent="YSort" instance=ExtResource( 1 )]
|
||||
position = Vector2( 176, 112 )
|
||||
scale = Vector2( 2, 2 )
|
||||
debug = true
|
||||
FRICTION = 200
|
||||
|
||||
[node name="AnimationTree" parent="YSort/Player" index="4"]
|
||||
|
||||
Reference in New Issue
Block a user