![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | bgegg |
#script.gd
extends KinematicBody2D
func printing():
print("hoge");
i can use above code as class.
i can access to above code like this with new.
var soruce = load("script.gd");
var instance = soruce.new();
is this class .gd file itself?
if i am wrong,do i have to do below?please your advice.
#script.gd
class printingClass:
extends KinematicBody2D
func printing():
print("hoge");