Game Maker thread and also not sure thread

Loneliness, Depression & Relationship Forum

Help Support Loneliness, Depression & Relationship Forum:

This site may earn a commission from merchant affiliate links, including eBay, Amazon, and others.

Fira

Member
Joined
Jul 22, 2009
Messages
11
Reaction score
0
Discuss Game Maker or not sure where to put so it or they or both goes in this thread or both in this thread.


Here is how to do random_range for Game Maker 7.0 and below

[pre]
var variable,minimum_amount_of_variable,maximum_amount_of_variable;
minimum_amount_of_variable = argument0;
maximum_amount_of_variable = argument1;
variable = argument2;


if (argument2 < argument0)
{
argument2 = argument0;
}
if (argument2 > argument1)
{
argument2 = argument1;
}
[/pre]


Example of random_range: (18,181,hp);
 
Hey Fira :)


Here is a random generator of x between a and b for you:

x = rand() * (a-b) + b;
 

Latest posts

Back
Top