0 votes

I'm trying to set up actions for a character to perform. I was watching a video from GDQuest on their skill system, but I can't seem to understand how they have it set up. From what I can tell, they're storing scripts in a PackedScene or something in order for the character to use when a certain action is selected. I already have a script that is set up for my character to perform the attack, but I can't seem to find a way to actually get the character to use said script. Am I doing something wrong here?

Godot version 3.2.3.stable
in Engine by (16 points)

the question is a little generic, but if i understood correctly you should attach the script to a Node (one node for each skill) and instance these skill nodes to the character scene as child.
In this way you can access the skill script with $SkillNode.method()

Please log in or register to answer this question.

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.