I need to figure this out for two reason and put it in two separate places for my game. Right now i have object spawning in hard code, I would like to spawn between top and bottom of the screen even with different screen sizes. The Second reason is that I need to stop the player from moving past the top and bottom of my camera view for all screen sizes. Can someone please help me I cannot find out how to do this anywhere.
↧