Tween when using set_limit_target #364
Unanswered
jjolmo
asked this question in
Question / Help Wanted
Replies: 1 comment
-
For this, you would generally use a different PCam for each room and then tween between each as you enter and leave the different areas. There was another discussion post about this, where you can see what that translated to: #195 (comment) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I have multiple rooms, these rooms are designed by a limit defined by a CollisionShape2D. Could be possible that when you assign a new "limit_target" the camera will tween from where it is to the new position?
Think it as a cheap way to create a Zelda2D dungeon movement where the camera moves to one direction to position in the next room
For now I'm doing something quite complex which doesn't seem to work correctly but may need some tweak to make it possible:
See this image that displays how a big room with a different size would be (marked with a cross)
I expect to change the limit of the camera whenever the user enters a new room which are separated by area2D collisionShapes
thanks!
Beta Was this translation helpful? Give feedback.
All reactions