sav=savestate.create(3)
savestate.save(sav)
This works in snes9x but not in VBA 24-m. Why?
It just tells me the savestate failed.
Without this I can't use savestate.load(object) either since I can't create any objects that I can forward my script to.
random = math.random(12)
if random == 1 then joypad.set(1,{A=1})
elseif random == 2 then joypad.set(1,{A=1})
elseif random == 3 and z == 1 then joypad.set(1,{down=1})
elseif random == 4 then joypad.set(1,{down=1})
elseif random == 5 then joypad.set(1,{down=1})
elseif random == 6 then joypad.set(1,{B=1})
elseif random == 7 then joypad.set(1,{B=1})
elseif random == 8 then joypad.set(1,{right=1})
elseif random == 9 then joypad.set(1,{right=1})
elseif random == 10 then joypad.set(1,{left=1})
elseif random > 10 then joypad.set(1,{A=0}) end
This is how I create random input. How can I make it have more than one button per frame?