Search found 2 matches
- Thu Apr 17, 2014 5:05 pm
- Forum: Support and Development
- Topic: Killing Enemys
- Replies: 2
- Views: 894
Re: Killing Enemys
Damn im so blind Thank you! My problem is solved
- Thu Apr 17, 2014 2:40 pm
- Forum: Support and Development
- Topic: Killing Enemys
- Replies: 2
- Views: 894
Killing Enemys
Hi! I want to kill an enemy with bullet but every time i shoot i get an error. Thats my code: function Enemy:update(dt) local i, o, w, s for i, o in ipairs(Enemy) do for w, s in ipairs(bullets) do if (s.x > w.x and s.x < w.x + w.width) and (s.y > w.y and s.y < w.y + w.height) then table.remove(bulle...