In my project, I have some functions that trigger when the screen orientation changes, to set the objects correctly on screen depending on whether it’s currently on Portrait or Landscape.
However, I do also use tweens in my project, and if the screen orientation changes while a tween is active, I start to have issues.
It happens when I tween an object’s position. If the orientation changes while an object is being tweened, the tween doesn’t adjust to the orientation changes.
For instance:
I click on an object to make it tween to the position (100,100). If the orientation changes to landscape, the position it has to go to changes to (150, 200), but if the object was already moving it still goes to (100,100).
Does anyone know if it’s possible to make it so the tween updates its target position? Or should I use something other than tweens for this?