You are not logged in.
- Topics: Active | Unanswered
Pages: 1
#1 Nov 29, 2010 10:45 AM
- Lii
- Member
- From: South Africa
- Registered: Nov 11, 2010
- Posts: 27
- Gems: 0
How do you make a flash game? (reward)
How do you make a flash game easiley?
I have ideas but I have no clue to do it.
If you help me I will give you alot of gems (amount not decided.) and the game I created.
Help?
Thanks
Do what you love
Love what you do
Offline
#2 Nov 30, 2010 9:21 AM
- Sheep
- Member
- From: Norway
- Registered: Jan 24, 2008
- Posts: 983
- Gems: 0
- Birthday: 20 January
- Age: 30 years old
- Gender: Male
- Website
Re: How do you make a flash game? (reward)
First, you need flash.
I will now try to tell how you can make an object move with the arrow keys.
But I'm using CS3 on a MacBook, so it might be slightly different in the version you use.
In the Document Properties, set Frame rate to 30 fps
Draw an object, select it, click Modify> Convert to symbol Call it McObject(or whatever you want, but you should show in the name that it is a movieclip)>OK.
Make sure the MovieClip is selected, and open the Actions window(you can do this by clicking Window, then Actions, or in the menu that pops up if you right-click the MovieClip(or something).
In the Actions window, type or paste this code:
onClipEvent(load)
{
//Here you can initialize variables when the object is loaded
moveSpeed=8;//The speed with which it will move
}
onClipEvent(enterFrame)
{
//This happens every "frame" of the game, which is in the first frame
if (Key.isDown(Key.RIGHT))
{
_x += moveSpeed;//Adds moveSpeed to the _x position
}
if (Key.isDown(Key.LEFT))
{
_x -= moveSpeed;//Subtracts moveSpeed from the _x position
}
if (Key.isDown(Key.DOWN))
{
_y += moveSpeed;//Adds moveSpeed to the _y position
}
if (Key.isDown(Key.UP))
{
_y -= moveSpeed;//Subtracts moveSpeed from the _y position
}
}
Close the Actions window and Play the game.
I use Actionscript 2.0.
Offline
#3 Nov 30, 2010 4:20 PM
- Lii
- Member
- From: South Africa
- Registered: Nov 11, 2010
- Posts: 27
- Gems: 0
Re: How do you make a flash game? (reward)
Okay thanks! I will notify you when it is done.
Do what you love
Love what you do
Offline
#4 Jan 08, 2011 11:50 AM
- spyrocrazy
- Member
- Registered: Jan 08, 2011
- Posts: 19
- Gems: 0
Re: How do you make a flash game? (reward)
game maker 8 is easy to use .very
Offline
Pages: 1