Time for action – testing the game to find a problem!

The game file to import and load for this session is 5961_02_08.stencyl.

Let's test the game so we can see what's going to go wrong!

  1. Save the game.
  2. Click the Test Game icon on the toolbar.
  3. Wait for the game to compile and display in the Flash Player Window.
  4. Press the left and right arrow keys to move the monkey and press the up arrow key to try to make the monkey jump.

Clearly things aren't working as we would expect!

What just happened?

We've experienced our first bug—however, it's not a fault with Stencyl—we just haven't set the game up quite right!

Although the left and right arrow keys are making the monkey move in the correct direction, the monkey is floating in midair, the animations for running left and right aren't working, and the jump button isn't doing its job.

It's almost impossible to develop a useful computer application—including a game, without introducing a mistake, or bug, during the development process, so when this happens, we need to find the problem and fix it!

..................Content has been hidden....................

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