Advertisement
otorp2

Untitled

Nov 8th, 2015
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. extends Area2D
  2.  
  3. var move_up = Vector2(0,-4)
  4. func _ready():
  5. set_process(true)
  6. pass
  7.  
  8. func _process(delta):
  9. set_pos(get_pos() + move_up)
  10. pass
  11.  
  12.  
  13. func _on_bullet_body_enter( body ):
  14. if body.has_method("mob_get_hit"):
  15. print("hit")
  16. pass # replace with function body
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement