random function

jacob717jacob717 Member Posts: 9

Hey guys. So, I am trying to make my first game and I'm in iPhone portrait mode. I am trying to make it so that an obstacle spawns across the screen and there is only a small gap, the the screen is scrolling vertically. When I am choosing where to make this gap randomly spawn on the obstacle, the random function only gives me a min and max value option, and from watching other videos it seems like this min and max is in relation to the y axis, but i need to create the gap in between a set area on the x axis because the game scrolls vertically.. How can I do that? Sorry if that was hard to understand

Comments

Sign In or Register to comment.