minor improvement
This commit is contained in:
1 parent
08f75b79d8
commit
7946fd789c
2 files changed
+2
-2
No files matched your search
@@ -23,7 +23,7 @@ func _ready():
|
||||
collision_shape_2d.shape = coll
|
||||
|
||||
func _physics_process(delta):
|
||||
if abs(position.x - player.position.x) < 220 or is_down:
|
||||
if abs(position.x - player.position.x) < 225 or is_down:
|
||||
linear_velocity.x = speed
|
||||
|
||||
if ray_cast_left_2 == null:
|
||||
|
||||
@@ -14,7 +14,7 @@ var innocent = false
|
||||
@onready var player = %player
|
||||
|
||||
func _physics_process(delta):
|
||||
if abs(position.x - player.position.x) < 220:
|
||||
if abs(position.x - player.position.x) < 225:
|
||||
linear_velocity.x = speed
|
||||
|
||||
if ray_cast_left_2 == null:
|
||||
|
||||
Reference in new issue
Block a user