Simple Show of Coding
by SnipingMayhem
加去主畫面,方便快捷開玩
安裝呢隻遊戲
撳分享掣,再揀「加到主畫面」,就即刻安裝呢隻game,方便快啲入返嚟玩。
Simple Show of Coding
Simple Show of Coding 關聯標籤
簡介
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 :)
玩法說明
Up, Down, Left, Right
留言
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...