Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- extends Node2D
- # member variables here, example:
- # var a=2
- # var b="textvar"
- func _ready():
- set_fixed_process(true)
- pass
- func _fixed_process(delta):
- var enemy = get_node("enemy")
- #var dir = Vector2(1,0)
- enemy.move(Vector2(1,0))
- if enemy.is_colliding():
- print(enemy.get_collider())
- #print(enemy.get_pos())
- pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement