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

Setting the Counter

If you ran the program at this stage, you would see all of your objects on screen, but you would not know that the Starting Movement Value has been placed into the current value. You should now set the Current Movement Value into the counter at the start of the frame to show you that the action you previously created is working correctly.

In the event editor, use the first Start of frame event line to set the value of Current Movement Value to the counter.

  1. Move across to the right until you are directly under the counter object, right click, and select Set Counter. A different style Expression evaluator appears, but it works in the same way as any of the other evaluators that appear in MMF2. We want to set the counter’s value ...

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