GameMaker: Studio

GameMaker: Studio

View Stats:
THE MADCAP Jan 24, 2020 @ 3:55pm
How do I make a simple random chance button?
So i'm making this simulator like game where you get to play as the enemy in a FNAF Fangame. And one of the characters that i'm programing is going to teleport around the building/area. But I want his movements to be random. Every so often a button will appear and when you click it you will teleport to a random room. I've done this with the "chance dice" and the create random thing. But I noticed that everytime I do it from the beginning it's always the same path. Is there a better way to make a simple random chance button actually work? And I make them change by objects just in case you need to know. Like change instance. If you want me to be more specific then tell me.
< >
Showing 1-1 of 1 comments
maras Jan 24, 2020 @ 5:00pm 
Every game uses the same seed to generate the random numbers.
Call
randomize();
when the game starts. This function will create a new seed
Last edited by maras; Jan 24, 2020 @ 5:00pm
< >
Showing 1-1 of 1 comments
Per page: 1530 50