hello,
How can I generate a number for example
if actor a collides with actor b -> variable c(100) minus (between 10 and 15)
so every time they collide, the variable gets 10,11,12,13,14 or 15 lesser...
thanks for now.
schnellboot wrote:
- Code: Select all
c-=10+rand(5);
c -= (10 + rand(6));
lcl wrote:schnellboot wrote:
- Code: Select all
c-=10+rand(5);
Actually:
- Code: Select all
c -= (10 + rand(6));
Because rand() doesn't return the inputted value in maximum case, it returns one less (when we're talking about integers).
c -= (10 + round(rand(5)));
Users browsing this forum: No registered users and 1 guest