drmwoz [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=64713 Pinball map collisions <p>I am very new to coding and pico 8 has made it that much easier for me to start. It's been a lot of fun!</p> <p>In the last couple of months, I've been playing around with code and following various tutorials on youtube. Recently I started working on a rudimentary pinball game. It now has a bouncing pinball on scrolling table using the full vertical length of the map. While collision works for the most part, the ball does often 'catch' on sides of flagged tiles. </p> <p>I would really appreciate some advice on what I am doing wrong in the collision functions.</p> <p>... and a supplementary query I have is can I use existing code to change the angle at which the pinball deflects? I suspect it will require trigonometry but thought I'd check before moving on...</p> <p> <table><tr><td> <a href="/bbs/?pid=114402#p"> <img src="/bbs/thumbs/pico8_jisabokaji-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=114402#p"> pinball</a><br><br> by <a href="/bbs/?uid=64713"> drmwoz</a> <br><br><br> <a href="/bbs/?pid=114402#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=48524 https://www.lexaloffle.com/bbs/?tid=48524 Sat, 16 Jul 2022 10:59:38 UTC