elyk [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=92462 [Help] 16x16 Sprite Collision Issues <p>Hope this is the right place to post this. First time programmer, and I've been having a ton of fun trying to make a game in PICO-8. </p> <p>I've been following Lazy Devs excellent Roguelike tutorial series on YouTube, but I've been running into a consistent issue. </p> <p>For my game, I decided to make my player sprite 16x16. However, Lazy Devs' tutorial (and most of the ones I've seen online) assume an 8x8 character sprite. This is specifically giving me grief when it comes to collision. Right now, my player bounces off the walls on the top of the screen, and ignores collision entirely when moving left into them. </p> <p>From what I can gather, the collision on a 16x16 sprite is calculated from the top left tile. Ideally, I'd love collision to be calculated from the bottom two tiles on the sprite. What's the best way to adjust/offset my collision to account for a larger sprite?</p> <p>I've attached my cartridge to this post. If someone could point me in the right direction, that would be much appreciated. </p> <p> <table><tr><td> <a href="/bbs/?pid=143074#p"> <img src="/bbs/thumbs/pico8_yabitadoh-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=143074#p"> yabitadoh</a><br><br> by <a href="/bbs/?uid=92462"> elyk</a> <br><br><br> <a href="/bbs/?pid=143074#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=140672 https://www.lexaloffle.com/bbs/?tid=140672 Fri, 15 Mar 2024 09:25:29 UTC