fixed issue #138
This commit is contained in:
parent
15375271f6
commit
7ea93b421f
2 changed files with 2 additions and 17 deletions
|
@ -16,7 +16,7 @@ func _process(delta):
|
|||
if not is_instance_valid(player):
|
||||
player = get_tree().get_nodes_in_group("player").pop_front()
|
||||
else:
|
||||
var current_sector = Game.get_sector(player.global_position + Vector2(0.0, -10.0))
|
||||
var current_sector = Game.get_sector(player.global_position + Vector2(0.0, -5.0))
|
||||
if scroll_h && current_sector.x != last_sector.x:
|
||||
position.x = current_sector.x * Game.resolution.x
|
||||
if respawn_h:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue