Search found 2 matches

by funnygamemaker
Thu Mar 27, 2014 6:26 am
Forum: Support and Development
Topic: Health/armour system health
Replies: 3
Views: 2052

Re: Health/armour system health

what happens is, that the health goes down instance once the play touches and or if I *dt it goes down 1 every second but in very long decimals.
by funnygamemaker
Thu Mar 27, 2014 3:10 am
Forum: Support and Development
Topic: Health/armour system health
Replies: 3
Views: 2052

Health/armour system health

This is my first post here. I need help with my health system. when my player touches my enemy I want it to -1 heart every second. if ply.y + ply.h + enemy.y and ply.y < enemy.y + enemy.y and ply.x + ply.w > enemy.x and ply.x < enemy.x + enemy.w then -- collision ply.healthscore = ply.healthscore + ...