5 months ago

Ok...this is getting out of hand.


THE IRANDOM FUNCTION IS SUPPOSED TO CHOOSE A RANDOM NUMBER. I HAVE TWO VERSIONS OF THE FUNCTION WHICH BOTH STATE THAT THE INSTANCE "oRocks" CAN BE PLACED IN ANYPLACE WITHIN THE GAME'S BOUNDARIES, ITS HEIGHT AND WIDTH (1366 x 768) but every single time i start the game, the supposed "random rock placement" happens and it goes in the same places. This has happened for years to me and I want to know if anyone else has problems with the irandom function or just has gamemaker-caused problems anyways (not the code you wrote's fault).
Since there is a 1366 x 768 resolution (or 16:9) that means that there are 1049088 possible positions for the rock instances.

Calculator Result

1366 x 768 =

1049088

And moreover, since there is 9 different rock sprites, there is only a 1/9441792 that the irandom function makes them move in those positions, with those sprites. Here are the probabilities after different trials:

one trial: meh (could happen)

two trials: 1 in 9441792

three trials: 1 in 8.9147436e+13

and so forth

i don't know why this is happening.



0 comments

Loading...

Next up

I am investigating...

Does anyone see a difference? (Snow white)

Game update coming soon! Also, sorry I haven't really been posting or updating anything. Just been very busy and stressed out. Here is something that helped me get through it.

I'm sorry about this one. You're gonna have to do it.

MRBEAST IS LITERALLY A SUPERVILLAIN! You cannot tell me this man is not on his villain arc.

Happy 4th of July! usa

anyone want to use this tileset? I made it for a game a while ago but I stopped making that game to work on the Underwalk. No credit required.

What is your favorite nation / state / county flag? Mine is the flag of Maryland, in the USA.

Favorite movies list!

After 6 months, I am finally apart of gamejolt...LETS GOOOOOOOOOOOOOOOOOOOOOOOOOOOOO