Log In  
Follow
yot1337
Follow

hello, I'd like to know if anyone can help me. I wanted to make a bomb sprite appear 6 times on 6 random places on the screen (except a border that I made), so I made a function for that:

function randombomb()
 for i = 1,6 do
 spr(4,rnd(104)+8,rnd(104)+8)
 end
 end

I called this function in the _DRAW loop function, which was a mistake because the screen turned into a one big chaotic mess...

if it wasn't clear, I want the function to happen only 1 time and not infinitely. can anyone please help me?

P#65502 2019-07-01 18:54

Follow Lexaloffle:        
Generated 2020-08-04 14:20 | 0.079s | 4194k | Q:10