How to PROPERLY tween camera to player's pos #2522
Unanswered
NikRetaNCAM
asked this question in
Q&A
Replies: 2 comments 4 replies
-
If I understand the problem correctly, the goal is moving right when you enter from the left? does this happen when you comment out the tween code? I assume the issue has nothing to do with the tween, but that you're checking overlap between the player and end goal using |
Beta Was this translation helpful? Give feedback.
4 replies
-
|
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
-
Dumb question, again, sorry 😅
When player finishes a level, i want camera to zoom to him and fade before transitioning to next level
This code just fades the camera and zooms it when player gets to finish point but now on the player's position
IF i do .tween(FlxG.camera, {x: player.x, y: player.y}) it will fly to left-up corner
Oh and about finish point, when i touch it
(i made it a bit upper on purpose)
It will fly to direction i touched it (if you go from the left, it will fly to the right, etc)
Any ideas why that happens?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions