right, which makes the zapper.read return table seem kind of odd... it returns 3 values: x, y and click, indicating whether the trigger is being pulled this cycle/frame... but what are x and y if click is false? couldn't we get away with just returning x and y and when those two values are false, it's assumed that there was no click?
anyway, being able to manually trigger a zapper click through Lua is my end-goal, any ideas?
Hey guys... just wondering if there was an easy way to manually set an NES Zapper click in Lua. The only function dealing with the Zapper on the wiki is zapper.read(), which returns the coordinates and whether the zapper is currently being fired. I'd like to do something similar to clicking on the screen with the mouse to fire the zapper.
The joypad has both a get and set, it seems like the zapper should/might as well.
If there is no built in function, there's probably a value that I could shove into a location in memory to get it to go off, I just thought it might be built-in.
Thanks!!
awesome. the script has been updated to define the tables in a single line (and all the array indexes fixed likewise)
looks awesome (same as mine, but for mm1 2 and 3, correct?), but i could not get it to work :(
Hey guys,
I've recently started getting into LUA scripting for NES games, and oh my god it's so much fun. I've been playing around with using the select button in Mega Man games to quickly switch weapons. It can be a pain figuring out where in memory some of this stuff takes place though. Here's the script and a link to the video. Let me know what you think. I'll be updating this thread as I make progress.
video -> http://www.youtube.com/watch?v=cBcOoNtULVQ
the script -> https://gist.github.com/614747