11 lines
195 B
GDScript3
11 lines
195 B
GDScript3
|
|
extends Item
|
||
|
|
|
||
|
|
@export var sword : PackedScene
|
||
|
|
|
||
|
|
func collect() -> bool:
|
||
|
|
var sword_instance = sword.instantiate()
|
||
|
|
player.add_child(sword_instance)
|
||
|
|
sword_instance.facing_mult = -1
|
||
|
|
return true
|
||
|
|
|