Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
(2 edits)

Day 12

I've made some fixes fo AI and added heat damage when entity is too close to the sun.

For this I added triggers into Box2dSensorComponent:

And then in startSensorDetectsBody method which is called from 'Box2World > ContactListener > beginContact':

The same way for endTrigger in another method.

And user implementation of any trigger (in this case for sun damage):

Any entity gets damage each 0.5 seconds in area of sun body sensor.