djellyjam [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=67398 drawling line by angle not working? <p>This is my code for drawling the line.</p> <p>--- is just spaces ignore them</p> <p>function raycast(fromx,fromy)<br /> ---cam.angle += 1<br /> ---local l = cam.dist<br /> ---local atx=fromx+(l<em>cos(cam.angle))<br /> ---local aty=fromy+(l</em>sin(cam.angle))<br /> ---line(fromx,fromy,atx,aty,8)<br /> end</p> <p>I can't see why this isn't working. im changing the cam.angle but the line is still straight</p> <img style="margin-bottom:16px" border=0 src="/media/67398/pico 8 line conundrum.png" alt="" /> <p>And there's no rad function so I do not know..</p> https://www.lexaloffle.com/bbs/?tid=48446 https://www.lexaloffle.com/bbs/?tid=48446 Thu, 07 Jul 2022 23:36:44 UTC