Created
July 22, 2014 11:22
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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