Page 1 of 1

how do i make stuff randomly popup

PostPosted: Sun Jan 20, 2008 3:25 pm
by lordezak
i want to make a game where things randomly pop up and you have to click them but how do i make it randomly choose where to pop up (like whack-a-mole)
if possible without code but if needed no problems

Re: how do i make stuff randomly popup

PostPosted: Mon Jan 21, 2008 3:31 am
by Bee-Ant
variable=rand(10);
if(variable<5)
{
//action1
}
if(variable>=5)
{
//action2
}