PAUSE_MODE_PROCESS not working

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

When I set pause_mode to process, it doesn’t work, even if I do it outside of code.

Here is my code:

extends Area2D

signal day_start

func _ready():
	self.pause_mode = Node.PAUSE_MODE_PROCESS

func _on_button_mouse_entered():
	$sprite.frame = 1

func _on_button_mouse_exited():
	$sprite.frame = 0

func _on_button_input_event(viewport, event, shape_idx):
	if event is InputEventMouseButton && event.is_pressed():
		if event.get_button_index() == BUTTON_LEFT:
			emit_signal("day_start")
:bust_in_silhouette: Reply From: Asthmar

Try erasing “self.pausemode = Node.PAUSEMODEPROCESS” and do it from the inspector. Also check the parent process method of the tree if it has one, it could be affecting the child.