reading

645Currently online
4Today's Reading
46Share Today
Multilingual display

Flash game development: [3]Flash frame rate events

2018-05-15 09:36:28

In Flash game development, to achieve the movement of objects, changes, you have to use frame frequency events, the following, with the tortoise race to introduce how to use frame frequency events

Tools/Materials

Flash cs6

Methods/Steps
1

actionscript 3.0

2

Import the required material into the stage

3

Open the component, add the Start and Play Again buttons to the stage, and add names to the start and restart buttons (see 1 and 2 of this series for details)

4

Add a text box to display the information (refer to 1 of this series for details)

5

Instantiate a name for the snail (see 1 of this series for details)

6

Related content Illegal climbing taken from experience

7

The code idea is to add a mouse click listening Event to the start button first. When the mouse clicks the start button, the frame frequency event is touched and the frame frequency event is executed (the code of the frame frequency event is: stage.addEventListener(event.enter_frame,gogo);). Then write a response to the frame frequency event method, the specific code below:

Recommendation