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. In the main scene, I have the spawn point beneath the player viewrect and they shoot up and then the gravity will obviously have them go back down to where they were. Does the fact that the gravity is what's moving it and not its own speed have something to do with it?