Random Position between ranges.
Posted
by
blakey87
on Game Development
See other posts from Game Development
or by blakey87
Published on 2011-06-23T17:40:54Z
Indexed on
2011/06/25
0:33 UTC
Read the original article
Hit count: 267
Does anyone have a good algorithm for generating a random y position for spawning a block, which takes into account a minimum and maximum height, allowing player to to jump on the block.
Blocks will continually be spawned, so the player must always be able to jump onto the next block, bearing in mind the minimum position which would be the ground, and the maximum which would the players jump height bearing in mind the ceiling
© Game Development or respective owner