Godot 4: how to implement interfaces in GDScript!

Tutemic
Tutemic
25.5 هزار بار بازدید - 12 ماه پیش - Want to up your coding
Want to up your coding game in Godot? Try implementing interfaces in GDScript.

I went ahead and cleaned it up and posted an initial ready-to-use version of the interfaces.gd file on GitHub for you to use in your own project!
https://github.com/tutemic/gdscript-i...

The version in the GitHub link solves the undesirable string reference in checking if a node implements an interface (shown in the video) and adds support for implementing multiple interfaces in one script. Try it out!

This was originally recorded as part of the extended advanced insights and Q and A livestream for the absolute beginners shmup tutorial. You can find that livestream here: https://www.youtube.com/live/58jR5T1usP0

The project for this video was constructed through the absolute beginners tutorial found here: Godot for absolute beginners - start ...

You don't need to watch either of those videos to start with this video if you're rather just watching this one!
12 ماه پیش در تاریخ 1402/06/12 منتشر شده است.
25,512 بـار بازدید شده
... بیشتر