hello,
Is there a way to insert 3 paths in a function ?
i can use the path with one dot at end ----> .up1 ( its a vector2 )
ex:
complete path --- root1.Fnum[animFrame].pt9.up1 ---
func _boneMove(btn_name, root_path ):
if ( Input.is_action_pressed('mouse_button') ):
btn_name.rect_global_position = get_global_mouse_position();
root_path.up1 = btn_name.rect_position; #<<---------it-works---
_boneMove(Btn_Up1, root1.Fnum[animFrame].pt9 );
but i cant use 3 paths in the function ?
func _boneMove(btn_name, root_path ):
if ( Input.is_action_pressed('mouse_button') ):
btn_name.rect_global_position = get_global_mouse_position();
root_path = btn_name.rect_position;
_boneMove(Btn_Up1, root1.Fnum[animFrame].pt9.up1 ); #<<-----it-doesnt-work------
this way root1.Fnum[animFrame].pt9 its working
but this way root1.Fnum[animFrame].pt9.up1 its no longer working, the bone doesnt follow btn_name
iam doing something wrong ?