Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | GreenDiggy |
I’m trying to disable the collision detection when my enemy goes into a specific state.
Example:
Disabling -
func _on_Area2D_body_entered(body):
emit_signal(“Bounce”)
State = 1
if Timer.is_stopped() and BackOut.is_stopped():
AnimationPlayer.play(“ShellStill”)
Timer.start()
HitBox.set_disabled(true)
Enabling -
func _on_back_Out():
AnimationPlayer.play(“Walk”)
TimerState = false
State = 0
HitBox.set_disabled(true)