1
0
Fork 0
This repository has been archived on 2024-05-12. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
GMTK-2023-Postjam/Scripts/Projectiles.gd

10 lines
226 B
GDScript

extends CharacterBody2D
func _physics_process(delta):
rotate(15 * delta)
var res = move_and_collide(Vector2(200 * delta,0))
if res:
res.get_collider().call("destroy")
queue_free()
if position.x > 670:
queue_free()