how do i make stuff randomly popup

Game Editor comments and discussion.

how do i make stuff randomly popup

Postby lordezak » Sun Jan 20, 2008 3:25 pm

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
the computer world is bigger than the real one!
User avatar
lordezak
 
Posts: 15
Joined: Sat Jan 12, 2008 1:52 pm
Score: 2 Give a positive score

Re: how do i make stuff randomly popup

Postby Bee-Ant » Mon Jan 21, 2008 3:31 am

variable=rand(10);
if(variable<5)
{
//action1
}
if(variable>=5)
{
//action2
}
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron