Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- extends Node2D
- var red = 0
- var speed = .01
- #warning-ignore:unused_class_variable
- var point1 = Vector2(1,2)
- # Called when the node enters the scene tree for the first time.
- func _ready():
- pass # Replace with function body.
- #warning-ignore:unused_argument
- func _process(delta):
- update()
- pass
- func _draw():
- red = red + speed
- if red > 1 or red < 0:
- speed = speed * -1
- print(red)
- draw_circle(Vector2(red*1000,red*500+50),500*red,Color(red,0,red))
- pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement