Worked on getting the creatures to store mouse movements. The goal of this is that they receive information on clicks, drags, and mouse speed. Originally, the code updated original mouse positions to new mouse positions only when the mouse moved, but this proved to be an issue because when the mouse stopped moving, the speed would stay the same. This was fixed by updating the previous mouse positions to the current mouse positions at the end of the mouse speed functions. This means that whenever the function checks again, it will see that the mouse position is the same as before, instead of comparing the current mouse position to the position the last time the mouse moved.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.