TheHighlander [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=19783 collide_demo_flags <p> <table><tr><td> <a href="/bbs/?pid=86324#p"> <img src="/bbs/thumbs/pico8_collide_demo_flags-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=86324#p"> collide_demo_flags</a><br><br> by <a href="/bbs/?uid=19783"> TheHighlander</a> <br><br><br> <a href="/bbs/?pid=86324#p"> [Click to Play]</a> </td></tr></table> <br /> Just a short demo of how to draw a map, place a sprite and detect collisions with the map.<br /> Make sure the map has sprites with flag 0 set to true.<br /> On each update the player's input is read and that new location is checked for a sprite with flag 0 set.<br /> If true, a collision is detected and the previous x and y position of the player are restored.</p> https://www.lexaloffle.com/bbs/?tid=41125 https://www.lexaloffle.com/bbs/?tid=41125 Sun, 10 Jan 2021 18:04:20 UTC