I have a RigidBody2D Node called fireball that will be spawning from bottom of the stage and shooting up. It has a gravity scale of 1.7 and I planned on it falling back down and flipping the sprite with it. The code so far is very simple, however, running early tests in the fireball scene doesn't have it flipping the fireball to show it flying downwards. Here is the code.
extends RigidBody2D
export var minspeed = 400
export var maxspeed = 550
func process(delta):
var velocity = Vector2.ZERO
$Sprite.flip_v = velocity.y < 0
Its a fairly simple code but it doesn't seem to be working, can anyone help me. I've also tried .y > 0 because I can never remember which direction is which for up and down.