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():
mode = Node.PAUSEMODEPROCESS func onbuttonmouseentered():
$sprite.frame = 1 func onbuttonmouseexited():
$sprite.frame = 0 func onbuttoninputevent(viewport, event, shapeidx):
if event is InputEventMouseButton && event.is
if event.getbuttonindex() == BUTTONLEFT:
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 (709 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 Frequently asked questions and 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 [email protected] with your username.