Anniebelle
August 24th, 2003, 09:05 AM
I'm quite lost here. I need some help. I know my flash, but not my actionscripting.
I'm trying to build a simple game for a design assignment thats due in soon.
My dilemma is to build a page where the dinosaur rolls from left to right (by keyboard command), simultaneously trying avoiding falling rocks.
I have built two movies so far, one which allows the dino to roll right, and the other to the left. They are of frame by frame animation.
I have also added the actionscripting to the dino thats rolling right:
onClipEvent (load) {
moveSpeed = 10;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
this._x += moveSpeed;
}
}
thats about as far as i got.
I need help on how i can allow the dino to roll right and left, using the left and right arrows on the keyboards.
Cheers
Anniebelle.
I'm trying to build a simple game for a design assignment thats due in soon.
My dilemma is to build a page where the dinosaur rolls from left to right (by keyboard command), simultaneously trying avoiding falling rocks.
I have built two movies so far, one which allows the dino to roll right, and the other to the left. They are of frame by frame animation.
I have also added the actionscripting to the dino thats rolling right:
onClipEvent (load) {
moveSpeed = 10;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
this._x += moveSpeed;
}
}
thats about as far as i got.
I need help on how i can allow the dino to roll right and left, using the left and right arrows on the keyboards.
Cheers
Anniebelle.