hey guys, i got this code from a Newgrounds tut,
onClipEvent(enterFrame) {
if(!touchingGround) {
grav++;
this._y+=grav;
}else{
grav=0;
}
if(_root.ground.hitTest(_x,_y,true)) {
touchingGround=true;
} else {
touchingGround=false;
}
it says there is a problem with the first line and the closing bracket.
also i got a problem with the x and y coordinates, i have a frame that does not match the other ones even though the xy numbers are the same.