I am making a small game in smalltalk, with a use timers. An object appears every second, and the game lasts 10. If i run a while loop for 10 seconds, i cannot capture any input from the controllers as well as display it in the view. So i have made a new process, but if i fork it as is, the run method has a too high priority and the others don’t have a chance to run. Is there a better way to do this?
EDIT:
I have forked the run method at 49, and the controller and view work, but only when i move the mouse while it’s over the view.
You can fork a process but you want to process it through the regular window event queue. Try something like this: