00:00
00:00
View Profile MeltedRainChris

1 Game Reviews w/ Response

All 3 Reviews

humm

How did you make the as for using the keys to move

empirewigs410 responds:

ok, first, make a picture and convert it to a movie clip. Call it car. Then right click on the clip and copy these actions into it:
onClipEvent (enterFrame) {
_root.speed = speed;
_root.mph = Number(speed)*2;
_root.mph -= _root.mph%1;
if (_root.mph<1) {
_root.mph = 1;
}
if (Key.isDown(Key.UP)) {
speed += 2;
}
if (Key.isDown(Key.DOWN)) {
speed -= 1;
}
if (Math.abs(speed)>20) {
speed *= .7;
}
if (Key.isDown(Key.LEFT)) {
_rotation -= 14;
}
if (Key.isDown(Key.RIGHT)) {
_rotation += 14;
}
speed *= .98;
x = Math.sin(_rotation*(Math.PI/180))*speed;
y = Math.cos(_rotation*(Math.PI/180))*speed*-1;
if (!_root.boundary.hitTest(_x+x, _y+y, true)) {
_x += x;
_y += y;
} else {
speed *= -.6;
}
}
onClipEvent (enterFrame) {
if (this._x> 600) {
this._x = -50;
}
}
onClipEvent (enterFrame) {
if (this._y> 450) {
this._y = -50;
}
}
onClipEvent (enterFrame) {
if (this._x <-50) {
this._x = 600;
}
}
onClipEvent (enterFrame) {
if (this._y <-50) {
this._y = 450;
}
}

If you want more help, goto flashkit.com and goto tutorials, then games, then on page 5 the how to make GTA like movement. MUST HAVE FLASH MX

Age 35, Male

Camdenton,MO

Joined on 3/27/03

Level:
5
Exp Points:
195 / 280
Exp Rank:
> 100,000
Vote Power:
4.16 votes
Rank:
Civilian
Global Rank:
> 100,000
Blams:
5
Saves:
26
B/P Bonus:
0%
Whistle:
Normal