moved player raycast

This commit is contained in:
pennyrigate 2023-01-09 19:38:49 -05:00
parent bc5f2606a0
commit 416982d88e
20 changed files with 294 additions and 6 deletions

View file

@ -238,7 +238,7 @@ func check_ladder():
#Start Climbing
current_state = State.CLIMB
#Move the raycast
climb_ray.position.x = 4 * sprite.scale.x
#climb_ray.position.x = 4 * sprite.scale.x
func die():
position = Game.respawn_point

View file

@ -627,8 +627,7 @@ position = Vector2( 0.5, 5 )
shape = SubResource( 39 )
[node name="ClimbRay" type="RayCast2D" parent="."]
visible = false
position = Vector2( 4, 10 )
position = Vector2( 0.5, 10 )
enabled = true
cast_to = Vector2( 0, -10 )
collision_mask = 4