Posts for Aaaboy97


Joined: 2/15/2014
Posts: 2
Thanks for the quick response. I guess my problem was I didn't set the buttons to true in the initial table, and I had been going off documentation that the second variable was the state of the button.
Post subject: I'm trying to make a simple Lua script
Joined: 2/15/2014
Posts: 2
I'm attempting to just make a simple script that will push random buttons while running a Gameboy ROM
local buttons = {"A","B","Start","Select","Up","Left","Down","Right"}
local state = {true, false}

while true do
	joypad.set({buttons[math.random(8)]},state[math.random(2)])
	emu.frameadvance()
end
When I run the script, no input is even sent to the emulator.