May-17-2019, 05:22 PM
(May-16-2019, 07:24 PM)micseydel Wrote: This is interesting. I looked a little bit but don't have time to deep-dive on this. If you can provide a runnable snippet of code which reproduces this problem without GUI code though (ideally zero imports), I'll make time to look deeper.
I don't think I can without a gui.
(May-16-2019, 07:53 PM)ichabod801 Wrote: I think you need to refigure how you are doing movement. When you click on something to move it, you should change it's state to 'trying to move to x, y'. Then you should periodically update your game. When you update things, you check every object for movement. If it is trying to move somewhere, you move it a little closer. If it gets there, change it's state to 'not moving'.
If I remove out the while loops and add this line in:
self.grid.move_players(players, spaces)which is commented out in my code I provided, even though there is no yield, I still get the same problem. So correct me if I'm wrong but, changing the way I do movement, won't really do much.
D