Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | TheExtraNerdyFox |
extends Node2D
func _process(delta):
if Input.is_action_just_pressed("attack"):
var GrassEffect = load("res://Effects/GrassEffect.tscn")
var grassEffect = GrassEffect.instance()
var main = get_tree().current_scene
world.add_child(grassEffect)
queue_free()
Im watching the HeartBeast tutorial, and get the error:
The identifying “world” isn’t declared in the current scope
But when he did it it worked smoothly! Please help…