Support our Sponsors:

Go Back   Touch Arcade > Games and Apps > iPhone and iPad Games

Reply
 
Thread Tools Display Modes
  #531  
Old Yesterday, 04:12 PM
Protopop Protopop is offline
Senior Member
 
Join Date: Jul 2014
Posts: 237
Default

So ive been using a single script in Unity javascript for my artificial intelligence. With the Skadad - the new oil-slick covered creatures - i started building a separate AI script, but this is the last item on my update list and i decided instead of rewriting a new one i should use the old script and add personality checkmarks.

For example the Skadad dont attack unless provoked (like most of the animals in BrightRidge) and they are curious and playful.

While i update it for the new creatures, im going to try and refactor some of the code too. Because any improvements i can make will benefit every creature in the game that uses AI.

As for the 1.2 update - as i mentioned im on the last item - the skadad AI, then i will submit it to the App store.

Anyways I thought i'd post the original AgentAI script. Im an artist not a programmer, so if anyone has any tips at any point, please feel free to point them out

AgentAI.js

http://protopop.com/assets/downloads/AgentAI.js
Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Copyright 2012, TouchArcade.com, LLC.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Copyright 2008 - 2011, TouchArcade.com. Privacy Policy / DMCA Copyright Agent