Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

As has been said before the bullets sometimes phaze through the enemies. I think the reason is probably just that the bullets move too quickly, so one frame it's in front of the enemy, does a collision check, and sees no collision. The frame after it has moved far enough that it's behind the enemy instead, and again, no collision. That's my hypothesis at least. Good work anyway!

OHH that would make sense.

It basic just check distance between every bullet and enemy, if it's bellow certain value it accounts a hit. On my Linux Desktop worked fine but Web not so much but at the same time web seems to have lower frame rate (see how long  yellow lines that represent flying bullets are ? on PC those are like 2 pixels) So that add up. Thanks. (I can't edit it now but maybe i will come back to this project in the future)