O'Reilly logo

Going to War: Creating Computer War Games by Jason Darby

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Multiple Computer Units Movement

The final aspect of computer movement that you deal with in this chapter is looking at the code that needs to be changed to handle multiple computer units moving around the screen.

Here is a list of things that you need to do to make sure the units move around the screen successfully:

  • Make sure all computer-controlled units have a qualifier group of Enemies.

  • Place them on the terrain map.

  • Configure the Array in the Start of Frame event on line 2, to contain the destination values for each unit.

  • Configure the triggers for the Computer Destinations group for each of the units, which includes setting up the default location of the unit based on its current location.

  • Create a new group by copying and pasting the Computer ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required