Skip to content

Instantly share code, notes, and snippets.

@ariscop
Created July 22, 2014 11:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ariscop/aad669df2704fada2c7d to your computer and use it in GitHub Desktop.
Save ariscop/aad669df2704fada2c7d to your computer and use it in GitHub Desktop.
Vba script for metroid fusion, pauses avi recording with the in game timer
prevframes = 0
recording = false
while 1 do
minutes = memory.readbyte(0x3000139)
seconds = memory.readbyte(0x300013A)
frames = memory.readbyte(0x300013B)
if prevframes ~= frames then
avi.resume()
if recording == true then
vba.print(string.format("%d:%d.%d Recoding", minutes, seconds, frames))
recording = false
end
else
avi.pause()
if recording ~= true then
vba.print(string.format("%d:%d.%d Stopped", minutes, seconds, frames))
recording = true
end
end
prevframes = frames
emu.frameadvance()
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment