Maybe this is me being stupid, but no matter how I look at it I feel like my code should be working.
Button presses are working in the title screen and dialogue sections, but for some reason it stops working in the main gameplay. The code looks sound to me and everything else behaves as it should, debugging has shown me that the functions are indeed being called. But inputs just don't work. Here is where the offending code could be:

1


The problem is probably this bit here:
_update=update_battle() _draw=draw_battle() |
What you probably want is instead:
_update=update_battle _draw=draw_battle |
Reason being that you want to change _update/_draw to reference your two functions, but instead you are assigning to them the output of those functions, which will be nil.
[Please log in to post a comment]