Untitled

KOD WORLD LEKCJA 2
mail@pastecode.io avatar
unknown
swift
a year ago
216 B
54
Indexable
Never
extends Node2D

var projectile_scene = preload("res://projectile.tscn")

func _on_timer_timeout():
	var projectile = projectile_scene.instantiate()
	add_child(projectile)
	projectile.position.x = randf_range(50,1050)