My flying thingy doesn't slow down when Engine.time_scale goes down, how would I fix that?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By sahish

I made a bomb that constantly goes up with the physics process function. My player has the ability to slow down time using the engine timescale thing, but when the player uses it everything in the game except the bomb slows down.

here is the script

extends Area2D

func _physics_process(delta):
if Engine.time_scale <= 0.05: #the timescale when player slows time
global_position = global_position + Vector2(0, -0.25)
else:
global_position = global_position + Vector2(0, -1)