- Home /
Calculate sprite positioning
I have 2 differend background images. One will take up the left side of the screen and the other one will take up the right side.
I dont have a problem with the scaling of the sprites. Only the positioning of them. Do you guys have any tips on how i could fix this
Edit: (in Runtime ofcourse)
What anchoring have you got? You could set the anchor to the left of the sprite then you could easily align them using Camera.ScreenToWorldPoint (I think that's the correct capitalization, on my phone so can't check easily)
Great idea with the pivot thing. That worked perfectly! I keep em at the same position as the camera. Just change the pivot
Your answer
Follow this Question
Related Questions
How to position Sprite sliced/cut parts? 0 Answers
Positioning sprite perfectly in camera view. 0 Answers
How to adjust positions of the sprites to different screen factors? 2 Answers
How can I load and position my sprites in c#? 1 Answer
position child sprites to different positions per frame 0 Answers