moved player raycast
This commit is contained in:
parent
bc5f2606a0
commit
416982d88e
20 changed files with 294 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue