w_bez [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=52020 SIN() COS() Need Help! <h3>I'm trying to make the line move when variable &quot;g&quot; increases</h3> <div> <div class=scrollable_with_touch style="width:100%; max-width:800px; overflow:auto; margin-bottom:12px"> <table style="width:100%" cellspacing=0 cellpadding=0> <tr><td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> <td background=/gfx/code_bg0.png> <div style="font-family : courier; color: #000000; display:absolute; padding-left:10px; padding-top:4px; padding-bottom:4px; "> <pre>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</pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <h3>If anyone has any tips for me, or a good sin() cos() tutorial, it would be a great help.</h3> https://www.lexaloffle.com/bbs/?tid=44819 https://www.lexaloffle.com/bbs/?tid=44819 Wed, 29 Sep 2021 16:37:23 UTC