Quantcast
Channel: Questions in topic: "screen size"
Viewing all articles
Browse latest Browse all 225

Calculate screen top and bottom postion

$
0
0
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.

Viewing all articles
Browse latest Browse all 225

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>