master
chendian 2 years ago
parent a1e9ae2153
commit 91ed36d3be

File diff suppressed because one or more lines are too long

@ -75,7 +75,7 @@ func cast_particle(resource:Resource):
dir.x = abs(dir.x) dir.x = abs(dir.x)
var angle = dir.angle_to(Vector2.RIGHT) var angle = dir.angle_to(Vector2.RIGHT)
new_particle.rotation.y = angle if is_right else -angle new_particle.rotation.y = angle if is_right else -angle
new_particle.scale.x = 1 if is_right else -1 new_particle.scale.x = abs(new_particle.scale.x) * (1 if is_right else -1)
add_child(new_particle) add_child(new_particle)
func release_effect(): func release_effect():

Loading…
Cancel
Save