0 votes

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.PAUSEMODEPROCESS func onbuttonmouseentered():
$sprite.frame = 1 func onbuttonmouseexited():
$sprite.frame = 0 func onbuttoninputevent(viewport, event, shapeidx):
if event is InputEventMouseButton && event.is
pressed():
if event.getbuttonindex() == BUTTONLEFT:
emit
signal("day_start")
in Engine by (12 points)

1 Answer

0 votes

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.

by (659 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.