Skip to main content

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

Furthering developments with AI by Nicolas Browning

On Monday I got the rat ai to go and eat food that's on the floor. On Tuesday I got the ghost to disrupt TVs in the restaurant. On Wednesday I got the ghost to throw trash out of the trash can. 

Getting the rats to just find the food was a challenge. At first, I was using a mesh collider to act as a field of view, and I was using OnTriggerEnter. Our producer came to me and suggested a process using a dot product equation and totally made that function ten times easier.

Having the TV disrupt go was a pretty easy process. I googled those rainbow-like no signal screens and recreated one in paint myself to ensure I didn't somehow back into a copyrighted image. Then it was just a matter of slapping that over the TV when the ghost went to haunt the object.

With the trash it was a fairly complicated feature to ensure that objects would realistically launch out of the trash can and then be objects the player would be able to pick up and throw back away. Again, I was helped by Miguel, our producer, who advised me to use the tags and rotation velocity to ensure the feature looked how a player might expect.

Every day that I'm able to sit down and code I feel I am learning so much. Applying what I've learned in previous classes as well as becoming more and more familiar with development within unity engine. I wish I was able to motivate myself to work on this stuff more especially with a more experienced programmer like Miguel. Like any other skill, programming is something I need to just do more to improve at.

Support this post

Did you like this post? Tell us

Leave a comment

Log in with your itch.io account to leave a comment.