lenf
February 12, 2004, 9:27pm
1
hi,
I need some help with an athletics game I’m making. I’ve got the basic script to make the guy run:
onClipEvent (load) {
SpaceKeyIsUp = true;
speed = 1;
}
onClipEvent (enterFrame) {
speed -= .2;
if (speed<=0) {
speed = 0;
}
if (Key.isDown(Key.SPACE)) {
if (spaceKeyIsUp == true) {
gotoAndStop(1);
speed += 1;
}
spaceKeyIsUp = false;
} else {
spaceKeyIsUp = true;
}
_x -= speed;
}
but i want to make other events like long jump, javelin etc and i dont know how to make it so speed and angle adds upto a good throw/jump.
can anyone help me out? thanks.
system
February 13, 2004, 10:20pm
2
could you give me like a basic code for a javelin game based on that code i used?^^ and then i could work on it. if you could it would be great, thanks.
system
February 14, 2004, 1:07am
3
Um… hehe… what exactly is a “javelin”?
system
February 16, 2004, 10:10pm
4
you throw it.
have you seriously never heard of the athletics event javelin?
system
February 17, 2004, 10:39pm
5
not really… make an animation or something as an example
system
February 18, 2004, 11:39am
6
you run upto a line and throw a stick as far as you can. if you go over the line its a foul.
have you played the spear toss game on makai media?