cpuSonicatt [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=39593 Using a colour from the alternate palette in pset() <p>Hi all,</p> <p>I'm trying to add a drop shadow effect to a couple of my sprites, like I've mocked up here:</p> <img style="margin-bottom:16px" border=0 src="/media/39593/unknown.png" alt="" /> <p>I managed to get this working by using a load of <code>pset()</code> calls going down the edge of the card, and in the corner. It works well, but I've run into the issue of the shadow colour on the green (3). I found that using the dark blue (1) colour was a bit too dark, and that using the blue-green (131) colour was much nicer, but I can't seem to get it working with <code>pset()</code>.</p> <p>I looked around here and, if my understanding is correct, you can only have 16 active colours in a palette, which is why I thought to replace a colour that I'd never use, like yellow (10), with the blue-green. However, again, using <code>pal()</code> for this didn't seem to work with <code>pset()</code>.</p> <p>Any ideas on how I can get this working? I'm relatively new to messing around with palettes and setting pixels like this.</p> <p>Thanks! </p> https://www.lexaloffle.com/bbs/?tid=48060 https://www.lexaloffle.com/bbs/?tid=48060 Tue, 07 Jun 2022 08:17:44 UTC Glitch reset in code? <p>Is it possible to trigger a glitch reset from code, like CTRL+R looks? I know there are code snippets that do small pokes to memory, but I was wondering if there's a way to make it closer to (or exactly!) like how CTRL+R.</p> <p>Thanks!</p> https://www.lexaloffle.com/bbs/?tid=42243 https://www.lexaloffle.com/bbs/?tid=42243 Wed, 31 Mar 2021 19:35:01 UTC