How to Limit the Frequency of Shooting Bullets in Flash

Adobe Flash Professional is a commercial software product developed by Adobe Systems. The application is used by Web developers to create Flash animations, utilities and games. When creating a game with Adobe Flash Professional, developers can set and edit a number of different variables, such as the speed at which a monster shoots bullets at the hero. ActionScript, a proprietary programming language, is used to edit variables by modifying the ActionScript code associated with the file.

Instructions

    • 1

      Launch Adobe Flash Professional and open the .fla file containing your application's code.

    • 2

      Click on the layer you associated with the ActionScript in the Timeline pane at the bottom of the program interface. Typically, this layer is the top layer on the list.

    • 3

      Right-click on the keyframe associated with the shooting-bullet effect and select "Actions."

    • 4

      Identify the variable that controls the speed of the bullets in the right-hand source code pane. Variables in ActionScript are declared by using the keyword "var." Decrease the value next to the name of that variable to decrease the speed of the shooting bullets. For example, if the line of code contains "var ShootingSpeed:Number = 6;", change "6" to a lower value.

    • 5

      Click on "File" and select "Save" from the context menu.

Related Searches:

Comments

Related Ads

Featured