Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Timing Bug: Wait commands and event movement off by 1 frame #1623
Create a map event with trigger = parallel and
Set this code
Chunks of the event with different WAIT's at the time you save
So there is an off by 1 error somewhere as shown in
This bug looks like it only happens when the first thing you do in the event code is wait.
For example, the below code works correctly
I put some logs of the wait count and the frame count
So we run the interpreter twice in the same frame here somehow.
For further investigation, I made a test with the code
This can be seen with the move routes being animated for a single frame
This can be seen in test case (2) where its the 2nd frame (Player stop_count is 1) but event stop count did not tick from 1 to 2.
This can be seen in the move routes. We setup the move route (stop_count=65535) but we have not animated a frame of movement like we did for parallel.
Here is a more revealing test:
Add a parallel event with
For the collision cases, change the teleport to drop the player onto the event.