bullet.gd 250 B

1234567891011121314
  1. extends KinematicBody2D
  2. var motion = Vector2.ZERO
  3. var type = 4
  4. #func _ready():
  5. # print('bullet gen...')
  6. func _physics_process(delta):
  7. var collide = move_and_collide(motion*delta)
  8. if collide: queue_free()
  9. func _on_Timer_timeout():
  10. queue_free()