Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- extends Area2D
- var direction = Vector2.RIGHT
- var speed = 300
- func _physics_process(delta):
- position += direction * speed * delta
- func _on_body_entered(body):
- body.take_damage()
- func _on_screen_exited():
- queue_free()
Add Comment
Please, Sign In to add comment