+1 vote

Hi guys,so I am just a new developer and I got stuck with a problem from a long time
Problem - I have a shop system in my game and put this code in it to change players skin when checkbox is pressed but this is not working please anyone help me I will be so much greatful

Code - funconskin2checkboxpressed:

in Engine by (29 points)
edited by

1 Answer

0 votes

First of all, you are not telling us what it is that is not working. In this case I can tell that you are trying to preload something while not providing a path. What you need to do, assuming skin is a child of player, is either get a reference of the player node, or, send a signal to the player to let him manage the hiding and showing of the skins. To get a reference of the player you need to use methods like get_node()

by (418 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.