At 6/22/03 09:32 PM, Star_Cleaver wrote:
A.
ummmm...try harder *shrug*
well, AS is not easy. What you're wanting to be handed to you on a silver platter is hard work. To make it look good and realisitic will take lots of work. I personally don't want to sit down and try to make s
Ok, I'll try harder, but I almost know all the scripts there is to know to make a good game, altho some dont work, no erors but it still dont work, humm, ok here is a question, I aint sure how to put this so sorry if it dont make sence, See I'm making this sk8ing game, and I got him to jump and do the trucks its just that when he lands, and?or if hes doing a trick when he lands, It doesnt go to the beef animation, this is the code I use
onClipEvent (enterFrame){
if (this.hitTest(_root.ground)
this.skater1.gotoAndPlay(15);}
It should work,
and there is this code I use for the jumping to stop And for the character to go to the frame with him standing still.
if (_root.ground.hitTest(this._x, this._y+20, true)) {
vel_y = 0;
jumping = false;
this.skater.gotoAndStop (1);
}
this one works for stopping the dude from falling (duh) and it works like its suppose to.
but when I modify the code so that when a trick is on it plays the beef animation, it fails to work.
this is the modified code,
if (_root.ground.hitTest(this._x+, this._y+, true)
Vel_y = 0;
jumping = false;
if (this.skater1.trick) {this.skater1.gotoAndPlay (15);}}
now the code failes on making him fall.or beef.
NOTE: when I say this.skater1.trick I know that the "trick" is suppose to equal "true" and I did put it to be "true"
So you got any ideas how I can make it work right.