look like it works now, i did a workaround, dunno what this issue was 💀
This commit is contained in:
parent
7584cf0b19
commit
8c0860a840
8 changed files with 64 additions and 44 deletions
|
|
@ -33,13 +33,14 @@ func _process(delta: float) -> void:
|
|||
func activate_segment(act_segment : int):
|
||||
Router.current_seg = segements[act_segment]
|
||||
Router.cur_id = act_segment
|
||||
player.reparent(Router.current_seg)
|
||||
for i in segements.size():
|
||||
if act_segment == i:
|
||||
segements[i].become_real()
|
||||
|
||||
else:
|
||||
segements[i].become_fake()
|
||||
player.call_deferred("reparent",Router.current_seg)
|
||||
#player.reparent(Router.current_seg)
|
||||
#for i in segements.size():
|
||||
#if act_segment == i:
|
||||
#segements[i].become_real()
|
||||
#
|
||||
#else:
|
||||
#segements[i].become_fake()
|
||||
|
||||
|
||||
func redraw_line():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue