Hi again, so far in my cafe sim type game i have a function that cooks the pizzas, which at present take 6 seconds to cook eventually i want this to take maybe 10 mins or so, but while the timer is running the screen you can't cook another pizza as the game kind of pauses, Is there another way to do this function with a time so that the other things in the game can still be accessed.
function cookFood(Nbr)
if Nbr = 1
if Pizzas >= 1
cookPizza()
endif
endif
endfunction
function cookPizza()
printScreen()
print "Cooking a Pizza"
Pizzas = Pizzas - 1
foodcount = foodcount -1
Time = 6000
do
if Time > 0
Time = Time - 1
else
print "Cooked a Pizza"
addExp(5.0)
Cash = Cash + 5
printScreen()
exitfunction
endif
loop
endfunction
Thanks again for any help.
FPS Creator Updated 116,Vista 32Bit UpTo Date, nVidea 8500 1Gig Graphics Card, 4 Gig DDR2 Ram, Intel Duel Core 3GHZ CPU