Open gbusto opened 5 years ago
Could also be due to the function BallItem.resetBall() node!.removeAllActions()
Moving this to a future release.
I think the solution is separating the .stop() functionality and .moveBallTo() functionality. Maybe in BallItem.swift at line 144, the action timer ends before the ball made it back to its specified location.
I've seen this issue again. Need to fix it.
Balls sometimes even end up off screen somewhere and get stuck. This needs to be fixed this time around. One way to test this is to add code that forces the balls to move to a particular spot "pretending" that that's the new, unfettered origin point decided by the game and my code for moving the balls to back onto the game floor should be able to fix it and work.
Still happening...
This still happens occasionally. Need to reopen and attempt to fix this.
New branch is here: i578_balls_still_dont_return_to_origin_sometimes. It's not happening at all now... but it still does. Going to leave this be for now.
The reason for this might be because in the BallItem.stop() function, we removeAllActions from the node when it might be in the process of being moved to the origin point.