implemented y-wing main cannon and effects.

This commit is contained in:
zerothelootrat
2024-06-06 03:24:17 -04:00
parent 869ad92e5a
commit 62f6b4d873
6 changed files with 88 additions and 1 deletions

View File

@@ -43,8 +43,9 @@ func _physics_process(delta):
global_position.y += speed * delta
#main cannon firing
if mainray.is_colliding and mainray.get_collider is player:
if mainray.is_colliding and mainray.get_collider() is player:
if main_cannon == true:
print("target")
fire_main_cannon()
main_cannon = false
mainCannonFire.start()