1.)
Make a sidescrolling background. This demonstration
will help out game programmers with the added main character
symbol feature. .
-----------------------
-----------------------
2.)
In
this tutorial You need the following:
3 symbols
-Main Character Symbol
-1 big Background Symbol
-An Actionscript Symbol
Properties panel
Actionscript panel
.
3.)
First things first... Give
a instance name to your bacground I chose "bg"
short for background . Give the main character an instance
name I chose "ghost" since my symbol is a
ghost like figure
-----------------------
-----------------------
4.)
All your actionscript
is going to be put into the actionscript symbol, so
select it and open up your actions panel. .
-----------------------
-----------------------
5.)
Then You can add your
code, and for the background to scroll you use the _root.bg._x
+= 10 to move it 10 pixels per frame per tap. The _xscale
property flips the symbol with an instance name of ghost
around.
.