This is part 2 in my car making tutorial.
code:
onClipEvent (enterFrame) {
this._y += speed*Math.sin(_rotation/57);
this._x += speed*Math.cos(_rotation/57);
speed *= 0.8;
}
onClipEvent (enterFrame) {
if(this.hitTest(_root.wall)){
speed = 0;
}else if(this.hitTest(_root.wall1)){
speed = 0;
}else if (Key.isDown(Key.UP)) {
speed = 15;
} else {
speed = 0;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.DOWN)) {
speed = -15;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.LEFT)) {
_rotation -= 15;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
_rotation += 15;
}
}
thanks for watching!
this has 2 things wrong with it
#1 its wall!!! not wow
#2 the codes are wrong in the discription
rockon12706 4 months ago
**Fehler** Szene=Szene 1, Ebene=Ebene 1, Bild=1:Zeile 1: ')' erwartet if(Objekt
MoneyCheater23 5 months ago
guys pls check out mine too /watch?v=fsRvQr3utkw PLS not joke my car dont look as good as yours but pls!
MrKaneDoggalypse 5 months ago
help respond owner thumbs up if your walls wont work!
alexkalos1 5 months ago
Please help!! my wall moves :(
lovemusiczify 6 months ago
I have a glitch with the wall...
When I press up, the wall moves to the right, and eventually off the screen.
Plz help.
646AWESOME 7 months ago
what if the car hits the wall backwards?
watoy922 7 months ago
@MATTEE782 because that one is more simpler and you dont have to type extra lines!
yaregod 8 months ago
why dos every tutorial have to be in actionscript 2.0?
MATTEE782 8 months ago
The WAll Code?
windowskingza1 8 months ago