falling block has a delay before falling
This commit is contained in:
parent
124b5e16aa
commit
c3f32de2df
7 changed files with 216 additions and 40 deletions
|
@ -25,7 +25,6 @@ func _physics_process(delta):
|
|||
else: move_up_and_down(delta)
|
||||
#Speed up if in raycast
|
||||
if raycast.get_collider() != null:
|
||||
Debug.print(raycast.get_collider())
|
||||
if raycast.get_collider().is_in_group("player"):
|
||||
go_fast = true
|
||||
timer.set_wait_time(0.5)
|
||||
|
|
|
@ -38,7 +38,6 @@ move_speed = 50.0
|
|||
material = SubResource( 5 )
|
||||
position = Vector2( 0, 1 )
|
||||
frames = SubResource( 3 )
|
||||
frame = 1
|
||||
playing = true
|
||||
|
||||
[node name="Hitbox" type="Area2D" parent="." index="1"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue