Play: Simple Show of CodingTutorials
|
||||||
|
Disconnected
|
|
|
|
|
Play: Simple Show of Coding
|
||||||
Click star to add your rating.
2008-11-30
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.isD…
Up, Down, Left, Right