I'm making a game for an assignment at university. The game I am making requires random household appliances around a house to "turn on" at random times. The player must run around the house turning this off.
I am confident with the rest of the code for the game, but the random turning on is what I'm not sure on.
I am thinking the solution would be to use an array with all my appliances pushed into into, then create a timer event. From this a random time would be picked from the timer, and then a random appliance would be picked from the array. The appliance on animation would then be displayed until the player clicked on it to turn it off.
Only problem is i'm not sure how to start this.
Also worth mentioning, I am only able to use flashdevelop and AS3 for this project, so no Adobe Flash.
Thanks in advance,