Log In  

Well It's really annoying to me
Fxxxxxx annoying

I am currently making a HP bar which decreases when user and monster collide

I have been trying to solve problem more than 5 hours but nothing worked.

   enemies={}
   enemyAttackdelay = 1;
   function _draw()
      --[[codes]]
      hpstatus(0);
   end
   function enemies.move(e)

   end
   function hpstatus()
   end
P#51575 2018-04-13 09:26 ( Edited 2018-04-16 08:03)

I can’t tell what you are trying to do just by what you have posted but you could keep track of the time() last time rectFill was called and only call it if time() now is at least one more second.

the code you posted doesn’t show enough. hpstatus is empty, doesnt do anything. you pass 0 to it but you dont have a parameter for the function. maybe you should post your whole cart instead. use ‘save @clip’ in console to copy to clipboard

P#51580 2018-04-13 12:47 ( Edited 2018-04-13 16:47)

Pe51580 sorry for poor question. But i solved it
Anyway, thank you!

P#51666 2018-04-16 03:20 ( Edited 2018-04-16 07:21)

Please mark this as solved in your original post.

P#51668 2018-04-16 04:03 ( Edited 2018-04-16 08:03)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-29 09:14:31 | 0.036s | Q:15