Log In  
Follow
w_bez

i am just a gamer who likes to game B)

[ :: Read More :: ]

I'm trying to make the line move when variable "g" increases

function _init()
  g=1
end

function _update()
  if (btn(2)) g+=1
  if (btn(3)) g-=1
end

function _draw()
  cls()
  circ(64, 64, 20, 7)
  x = 64 + cos(g()) * 20
  y = 64 + sin(g()) * 20
  line(64, 64, x, y)
  print(g)
end

If anyone has any tips for me, or a good sin() cos() tutorial, it would be a great help.

P#97986 2021-09-29 16:37 ( Edited 2021-09-29 16:45)