File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -6,3 +6,7 @@ func _start() -> void:
6
6
"I don't know what to say." ,
7
7
"My name is L'yembo. Maybe we'll meet again someday." ,
8
8
])
9
+
10
+ var lyembo = get_parent ().get_parent ()
11
+ lyembo .move_to_relative (- 100.0 , 0.0 )
12
+ await lyembo .motion_done
Original file line number Diff line number Diff line change @@ -92,20 +92,25 @@ impl INode2D for PCharNode {
92
92
93
93
fn physics_process ( & mut self , delta : f64 ) {
94
94
if let Some ( target) = self . cutscene_motion {
95
+ let mut moving;
96
+
95
97
let own_pos = self . base ( ) . get_global_position ( ) ;
96
98
let input_vector = Inputs :: iv_from_to ( own_pos, target) ;
97
99
98
100
self . base_mut ( ) . set_global_position (
99
101
own_pos + input_vector * MAX_SPEED * delta as real ,
100
102
) ;
101
103
102
- self . anim_move ( true , input_vector ) ;
104
+ moving = true ;
103
105
104
106
if ( target - own_pos) . length ( ) < CUTSCENE_MOTION_CLOSE_ENOUGH {
105
107
self . cutscene_motion = None ;
106
108
self . base_mut ( ) . emit_signal ( "motion_done" . into ( ) , & [ ] ) ;
107
109
self . base_mut ( ) . set_global_position ( target) ;
110
+ moving = false ;
108
111
}
112
+
113
+ self . anim_move ( moving, input_vector) ;
109
114
}
110
115
}
111
116
}
You can’t perform that action at this time.
0 commit comments