Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- extends Node2D
- var r = 75
- var theta = 0
- func _ready():
- set_process(true)
- pass
- func _process(delta):
- update()
- func _draw():
- var x = r * cos(theta)
- var y = r * sin(theta)
- # x = x + speed
- draw_circle(Vector2(x + 100,y + 100),10,Color(255,255,255))
- theta += .02
- print(x)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement