I'm still very new to Godot so apologies if this is a very newbie question.
this is my code to shoot a fireball from my dragon's mouth:
I want it to shoot in whatever direction my player sprite is facing. At the moment I only want my player to be facing right or left but it cant still face up or down(this is on purpose).
like so: https://gyazo.com/04e00f65340d394fcb8ed492233ae1dc
but the fireballs only seem to come out of the right side no matter which way the character is facing.
shown here: https://gyazo.com/27f9d6636911ce649e07b1b141ab79df
Any ideas? Thanks in advance!