Log In  

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.

Thanks!

P#89789 2021-03-31 19:35 ( Edited 2021-03-31 19:35)

CTRL+R is just a bunch of pokes though! not sure if there more targeted at certain ranges or purely random though.. would have to reset a bunch and peek to see I guess

P#89790 2021-03-31 19:37

Yeah, I had been messing about with CTRL+R and the following snippet and they feel very different:

for i=1,5 do
    poke(rnd(0x8000),rnd(0x100))
end
P#89791 2021-03-31 19:48
1

When you say trigger a glitch reset, do you mean trigger a reset that also has the glitch effect? (As opposed to just re-calling _init() again.)

If so, then if you do extcmd("reset") in your code, that's the same as hitting CTRL-R. You'll get the glitch effect when it resets.

P#89797 2021-03-31 20:17

Perfect, thank you so much

P#89798 2021-03-31 20:21
 
P#91857 [hidden by admin]

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2023-01-31 23:46:03 | 0.006s | Q:14