An Interest In:
Web News this Week
- April 14, 2024
- April 13, 2024
- April 12, 2024
- April 11, 2024
- April 10, 2024
- April 9, 2024
- April 8, 2024
April 23, 2022 05:06 am GMT
Original Link: https://dev.to/archerallstars/how-to-call-a-function-in-another-script-in-godots-visual-script-1elm
How to call a function in another script in Godot's Visual Script
A lot of people who use Godot's Visual Script don't know how to call a function in another script.
Well, that's easy! You can use a propagate_call()
node for that.
Propagate Call
- You can add a propagate call to the Visual Script canvas by searching for it in the node search window as shown in the screenshot below:
- Then, most of the time, you will need to change its call mode to either Node Path or Instance.
The rest is obvious. I hope this help
Cover photo by NoWah Bartscher on Unsplash
Original Link: https://dev.to/archerallstars/how-to-call-a-function-in-another-script-in-godots-visual-script-1elm
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To