Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- extends Node2D
- func _ready():
- update()
- func _notification(what):
- for i in range(0,200,10):
- i+=1
- print(i)
- if what == NOTIFICATION_DRAW:
- draw_line(Vector2(i,50),Vector2(50,200),Color(1,1,1),5)
- draw_line(Vector2(50,50),Vector2(100,200),Color(1,0,0),5)
- # or, instead of `_notification`:
- func _draw():
- draw_line(Vector2(80,50),Vector2(80,200),Color(1,1,1),5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement