Testing and Debugging

From ManWiki

Jump to: navigation, search

Contents

Topic Summary: In this topic you will learn about "debugging" your game. Debugging is the process of testing your game in order to find mistakes ("bugs") and then fixing the bugs before the game is made available to the players.


Topic Assignments

Play your game and make a list of the "bugs" in it. Share your game with your classmates and challenge them to find "bugs" in your game too.


Read this tutorial on how to debug your game using tools such as the output window.

The Output window will show results of a "trace" statements in your ActionScript code.


The "trace" statement is used to record programming notes or to display messages in the Output window while testing a movie. It can help you find the location of your "bugs". For example, this "trace" statement will write a message ("You hit the wall") in the Output window when there is a collision with hit the wall object.

if(hitTest(_root.wall) == true){
		trace=("You hit the wall")		
	}


Read this tutorial on how to debug your ActionScript 2.0


Learn about Compiler Errors. If you have any issues with your ActionScript while it is running, the errors will be shown in the Compiler errors window. Here you can double-click on the error, and it will take you to the line of ActionScript that needs attention. Before you edit the code, make sure you close the running game first.

Image:Compiler errors.jpg




Update the Wiki

  • Upload the assets (.SWF and .FLA) you created to your Team page if you are working on a Team game, or to your "My Projects" page if you are working alone.


Update the Blog

  • Write a Blog post about this topic, share your learning experience!


Related Links and Tutorials


Search the Web for more information

Here are some search results on Flash ActionScript programming:


Image:Icons-mini-icon_user.gifImage:Icons-mini-icon_user.gifImage:Icons-mini-icon_user.gif Students Contributions

Personal tools