Player walls encapsulated in player

parent fd264f32
......@@ -204,7 +204,7 @@ func shoot():
energy = 0
get_node("AnimationPlayer").play("Shoot")
current_scene.add_child(wall_instance)
$"Walls".add_child(wall_instance)
wall_instance.add_to_group(str("player",player_number))
wall_instance.rotation = player_rotation
wall_instance.position = player_position
......
......@@ -172,4 +172,6 @@ polygon = PoolVector2Array( 0, 10, -10, -10, 10, -10 )
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
anims/Dash = SubResource( 8 )
anims/Shoot = SubResource( 9 )
[node name="Walls" type="Node" parent="."]
[connection signal="timeout" from="SafeTimer" to="." method="_on_SafeTimer_timeout"]
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment