Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | idkaryan |
So basically say for a game like breakout, I have visibility notifier connected to the ball and I emit 'game_over'
signal when it exits screen. Problem is, in my pause menu, there’s a ‘restart level’ button which basically just reloads the current scene after calling get_tree().paused = false
which in turn ALSO calls the ball’s visibilityNotifier’s screen_exited
signal causing game_over
to be emitted even when the person just restarted.
TLDR : changing scenes is calling visiblityNotifier2D to emit signals. How to stop that case?