02-15-2024, 07:37 PM
But the variables cameraX = playerX - width(primary)/2
and cameraY = playerY - height(primary)/2 where I place it, in the main file and then in the player file I subtract cameraX and cameraY.
I don't understand where to put that, I'll give you the code I have made and you tell me where I put it.
and cameraY = playerY - height(primary)/2 where I place it, in the main file and then in the player file I subtract cameraX and cameraY.
I don't understand where to put that, I'll give you the code I have made and you tell me where I put it.