Flash Game Tutorial Part3–Rotating Character Based on Mouse Control
Jun/092
In my last posts, I have shared on how to move person on scrolling background based on keyboard events.In this chapter I am going to post on how to rotate character with 360 degrees flexibility based on mouse control which is quite useful in most shooting or action games.
Flash Game Tutorial Part2-Moving Person
Jun/093
In the sample of the flash tutorial part 1 — the flash game tutorial(Scrolling Background of Flash Game), you must have been noticed that the person you are controlling is always in the center even you have move the stage to the map edge.
How to Create Scrolling Background of Flash Game
Jun/091
Scrolling background is quite common in most flash games. I didn’t create scrolling background function in Bloody Land becuase I didn’t know how to do that. Now here I figure out how to do that and I am trying a sample which is a ‘limited’ scrolling background that is a 1800×1200 image. When you press arrow keys to control the image where it is going, it feels like the screen is moving.Remember flash has a limit of dealing with image larger than 2880×2880 resolution, if you really create a endless scrolling background you have to find a another strategy like cutting background image into pieces and control them all together in a loop or just copy only part of the image you want to showed on the screen.
How to Change Cursor with Actionscript
Jun/090
In most flash games, you have to change the cursor of your mouse for better look. Here is the simple tutorial on how to change and customize the cursor with actionscript.
Actionscript Performance Optimization Tips
Jun/091
1.Cache images by setting cacheAsBitmap property to true if you dont’ frequently render the image.
2.Use ENTER_FRAME only when needed.
3.Use visible= false other than alpha=0
4.Use ENTER_FRAME instead of Timer events.
5.Avoid new operators

