i made a system that detects if you enter a room and sets the camera limits to the new room’s collision shape, but if you switch fast from rooms there is a chance that the limits dont update(btw i have position smoothing on and limit smoothing on for smooth transition)
so rooms are area2D nodes with a collissionshape2D, when you enter a room the code will calculate the size of hte collissionshape and make update the camera limits to the collissionshape borders and i turned limit_smoothing on
so the transitions goes smooth and not switch instantly, so at the end of a room the camera stops moving. if you exit and enter a room really fast, the camera limits wont update and the camera will be at the previous room while you are in another room. but without limit_smoothing, there is no bug, so how can i fix it while having limit_smoothing on
didnt work either i get of the new room while the transition is happenning, i think the camera limits do not update while transitioning, thats why on instant transitions there are no bugs, but how can i make the update happen even while the transition?
You could insert another transition between your transitions. In the game I am working on a black screen is shown when the player goes from one area to another. Basically I drop the curtain while I am changing the stage then raise it again when the scene finishes loading.
You could also remove the ability to switch rooms quickly. If you disable the transition point for a few seconds after a player enters the room you eliminate their ability to see this issue.
You could also remove the ability to switch rooms quickly. If you disable the transition point for a few seconds after a player enters the room you eliminate their ability to see this issue.
thanks for the idea but its a platformer, the player must move a lot