Posted 13 April 2015 - 11:44 AM
Hello,
I just want to know if it's possible to execute something in a diffenrent process (or something like this) because I have blocking functions…
For exemple I have this unfction :
Thanks !
I just want to know if it's possible to execute something in a diffenrent process (or something like this) because I have blocking functions…
For exemple I have this unfction :
local function ennemiSpawn() -- Fait appraître un ennemi
os.sleep(math.random(10))
array[0][0] = "$"
end
Or that :
local function readKey() -- Test les entrées clavier
local event, key = os.pullEvent( "key" )
if key == keys.e then
print( "Vous avez appuyer sur E" )
end
if key == keys.x then
running = false
end
end
Thanks !