JudeFree [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=116856 Handling randomized pickups <p> <table><tr><td> <a href="/bbs/?pid=162743#p"> <img src="/bbs/thumbs/pico8_pidhuniku-1.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=162743#p"> Strawberry Pickings</a><br><br> by <a href="/bbs/?uid=116856"> JudeFree</a> <br><br><br> <a href="/bbs/?pid=162743#p"> [Click to Play]</a> </td></tr></table> </p> <p>I can&rsquo;t figure this one out&hellip;</p> <p>I&rsquo;m trying to make a simple game where the player picks up strawberries in a set amount of time. I used Rnd() and mset() to randomize where the strawberries are on the map everytime, but I can&rsquo;t figure out how to make the player interact with them. I can make the strawberries add to a counter, but don&rsquo;t know how to swap the tiles to the version of the sprite without the red dot that represents the strawberries. </p> <p>I know I&rsquo;m doing something wrong but don&rsquo;t know what. I&rsquo;ve tried using collisions and flags, and mget and mset, but still no luck.</p> <p>How can I solve this?</p> https://www.lexaloffle.com/bbs/?tid=147508 https://www.lexaloffle.com/bbs/?tid=147508 Sun, 23 Feb 2025 18:50:09 UTC Struggling with collision between game states <p> <table><tr><td> <a href="/bbs/?pid=161600#p"> <img src="/bbs/thumbs/pico8_magonuziwu-2.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=161600#p"> Panita v1.0</a><br><br> by <a href="/bbs/?uid=116856"> JudeFree</a> <br><br><br> <a href="/bbs/?pid=161600#p"> [Click to Play]</a> </td></tr></table> </p> <p>Just as the title says, I'm having some issues with collision in my game. I'm able to set the flags for collision in the yellow version of the map to work with no problem, but for some reason, when I load the blue version of the map by pressing the &quot;B button&quot; the game behaves as if the objects in the yellow version were still there and doesn't allow the cat to move freely.</p> <p>The blue version of the map is tied to a game state called &quot;night&quot; and the yellow one is tied to one called &quot;day&quot;. I really don't know where I'm messing up here. can somebody help me figure it out?</p> <p>I'm new to programming in general so forgive the spaghetti code.</p> https://www.lexaloffle.com/bbs/?tid=146978 https://www.lexaloffle.com/bbs/?tid=146978 Mon, 03 Feb 2025 21:17:59 UTC