• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Windows Random_range heartbeat

J

Jdown79

Guest
Hey all.
The basic setup I am going for is :
on contact with obj_bad { heart rate goes up}
on contact with obj_good {heart rate goes down}
which wouldn't be so hard if the heart rate would be a consistent number.
I need the heart rate to have some flexibility, instead of being 90, vary from 85-95 incrementing per second.

My initial idea was to have eight random ranges, and the contact would increase which range to go to.
I'm sure there would be an easier way, any suggestions?
Thanks.
 
J

Jdown79

Guest
@TheouAegis with random_range is there a way to remove the decimal values? e.g 90 vs 90.04

EDIT:
Neeever mind, Just worked out the difference between random_range and irandom_range

Cheers bud
 
Last edited by a moderator:
Top