G
GolemRO
Guest
Hello!
Right now, I am working on a little "Whack-a-Mole" style game and I use the random(value) function to make the Moles appear, well, randomly.
for example...
[step event]
...
if(status==0)
{
...
//some code
if(floor(random(300))==100)//something random
status=1 //status 1 will make the mole appear and do other stuff.
}
else if(status==1)
{
...
//mole appears, after 1 seccond or hit by hammer status become 0, and so on.
}
...
In the main room are 9 Mole objects(placed like a 3x3 grid), every one executing individually that part of the code. After running the game several times, I found out that the Moles appear in some sort of pattern, fact that bothers me and make the game easier...
Is there a soluion for this problem?
,':\
Right now, I am working on a little "Whack-a-Mole" style game and I use the random(value) function to make the Moles appear, well, randomly.
for example...
[step event]
...
if(status==0)
{
...
//some code
if(floor(random(300))==100)//something random
status=1 //status 1 will make the mole appear and do other stuff.
}
else if(status==1)
{
...
//mole appears, after 1 seccond or hit by hammer status become 0, and so on.
}
...
In the main room are 9 Mole objects(placed like a 3x3 grid), every one executing individually that part of the code. After running the game several times, I found out that the Moles appear in some sort of pattern, fact that bothers me and make the game easier...
Is there a soluion for this problem?
,':\