Attention | Topic was automatically imported from the old Question2Answer platform. | |
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)