Simple Show of Coding
autor SnipingMayhem
Simple Show of Coding
Tagi dla Simple Show of Coding
Opis
A simple show of how 15 lines of coding can make a simple game. The coding included was velocity variables and a limit to the variables so the object wont go off the play area.
Due to comments here is the code i used...
class ty extends MovieClip
{
var velocity;
function onLoad()
{
velocity = 10;
}
function onEnterFrame()
{
if( Key.isDown(Key.RIGHT) )
{
_x = _x + velocity;
}
if( Key.isDown(Key.LEFT) )
{
_x = _x - velocity;
}
if( Key.isDown(Key.UP) )
{
_y = _y - velocity;
}
if( Key.isDown(Key.DOWN) )
{
_y = _y + velocity;
}
}
}
Please donate and help me to make more games thanks everyone.
Contact me if you have any problems or want to learn how to do this :)
Jak grać
Up, Down, Left, Right
Komentarze
asmit10
Nov. 30, 2010
The cross is uneven lol
Heylon
Sep. 06, 2009
Donate?!!! Hell no for me donate you need context menus Shared objects and good game play....sorry 1/5
Petpet987
Sep. 03, 2009
Is this a joke?
Yoh0Asakura
Mar. 25, 2009
Lol, You help me, -T-A-N-K- -Y-O-U-!-!-!-!-
It's a SHOT, make a game.
Where you get this code?
Lucifer145
Feb. 19, 2009
wow, nothing you can get using shootorials... wait a second...