Log In  

@yot1337

Follow
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

About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2019-11-15 04:12 | 0.062s | 2097k | Q:10