This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

Hello, I am making a game in Godot. The sprite needs to change it's appearance whenever I press an arrow. I made the sprite the child of the main sprite/default sprite, but whenever I toggle off the main sprite to show the child sprite, the child sprite hides with the main sprite. How do I make a child node's appearance toggle on it's own without being controlled by it's parent? Is it possible to do it on GUI, or should I simply use GDScript?

Thank you!

Godot version v.3.4.4
in Engine by (12 points)

2 Answers

0 votes

See this video

Randomly Variate Textures in Godot - 2 METHODS

try going to the inspector and clicking on the little arrow pointing down and clicking on Make unique

Sprite make unique

by (286 points)
0 votes

Rather than having the two sprites in a parent/child relationship, make them siblings of each other. Then, when switching between them, just set the visibility of each sprite as appropriate.

by (22,704 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.