13 years, 3 months ago
Highlights
13 years, 3 months ago
13 years, 3 months ago
I'm making a 2D sidescroller in XNA and I'm having an issue with the way the camera follows the player. When the player walks left or right, and its walk speed is a decima…
13 years, 3 months ago
13 years, 3 months ago
You have misunderstood my suggestion. Let suppose the player is moving 1 pixel in some direction. Since (playerPos - camPos)*strength is not related to the player movement, it c…
13 years, 3 months ago
Latest Activity
See all in DiscussionsYou have misunderstood my suggestion. Let suppose the player is moving 1 pixel in some direction. Since (playerPos - camPos)*strength …
13 years, 3 months ago
if (camPos != playerPos) camPos += (playerPos - camPos) * strength; This seems dodgy to me. What happens if the …
13 years, 3 months ago
The camera position code is in the first post.
13 years, 3 months ago