Posted 05 June 2013 - 08:15 PM
Hello everyone!
While I was trying to make a fancy game using an advanced ComputerCraft computer, I found a problem that seems quite weird, and I don't really know what might be the cause of this or how to solve it.
Basically, when I'm trying to do os.pullEvent("mouse_click") inside a coroutine in a function I have (the coroutine is to make my custom input fields work while still have a "back" button), os.pullEvent doesn't seem to trigger. Outputs before the line works, but not after. No output, and if I remove the coroutine, it works, but the input fields will no longer work then.
The problematic line is line 125, feel free to try it out… :P/>
Link to program code:
http://pastebin.com/vpQsn5iD
Thank you,
- As
While I was trying to make a fancy game using an advanced ComputerCraft computer, I found a problem that seems quite weird, and I don't really know what might be the cause of this or how to solve it.
Basically, when I'm trying to do os.pullEvent("mouse_click") inside a coroutine in a function I have (the coroutine is to make my custom input fields work while still have a "back" button), os.pullEvent doesn't seem to trigger. Outputs before the line works, but not after. No output, and if I remove the coroutine, it works, but the input fields will no longer work then.
The problematic line is line 125, feel free to try it out… :P/>
Link to program code:
http://pastebin.com/vpQsn5iD
Thank you,
- As