Scripting our non-player characters

In this section, we will write the necessary scripts to manage the Cucumber Beetles in our game. Specifically, we will write scripts to accomplish the following:

  • Beetle patrol
  • Beetle finds and eats cucumber
  • Beetle attacks player on the ground
  • Beetle stands to attack
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset