HOLY! sheet.
ok, so im nearing the end of a course in game design (for school ya know). and I'm making game in flash, so i thaught what better place to go for help.
mostly it has gone smoothly, and a good part of the game is finished, but im having a problem at a turning point, and i have ABSOlutly NO idea WTF is going on.
so im making a camera follow the ball, but (on the main timeline not the MC) the code doesent seem to geting to the onEnterFrame!
so wtf could possably make a script skip over / not get to a certain line of code.
we have prety much combed the entire program, and we cant find an effing thing wrong.
onMouseDown = function () {
sling = false;
};
onMouseUp = function () {
cam.stopDrag();
sling = true;
};
onEnterFrame = function () {
if (!cam.hitTest(ball) && holder == false) {
cam.stopDrag();
sling = true;
}
if (sling == true) {
ydiff = _root.ball._y-cam._y+ycamset;
xdiff = _root.ball._x-cam._x+xcamset;
cam._x += xdiff*speed;
cam._y += ydiff*speed;
} else if (sling == false) {
cam.startDrag(false);
}
}
yeah, cant figure out what the problem is.