The Enchanted Cave 2
Delve into a strange cave with a seemingly endless supply of treasure, strategically choos
4.34 / 5.00 31,296 ViewsGhostbusters B.I.P.
COMPLETE edition of the interactive "choose next panel" comic
4.07 / 5.00 10,082 ViewsThis is really strange and I've done my best to fix it but nothing seems to work.
Its hard to describe but I'll try anyway. All of codes work on the first frame of flash game, everything the hittests, the camera, the player. But on the next frame, the hittests don't work and the neither does the camera. Mind that I've the instances the same.
Heres the SWF
At 11/25/08 09:34 PM, Ferris95 wrote: my problem
Oh snap, I forgot. I haven't added the script to advance to the next frame, so just press foreward.
wierd
is there actionscript on the second frame?
or is it only on the first frame in your fla?
At 11/25/08 09:38 PM, CrustySheet wrote: wierd
is there actionscript on the second frame?
or is it only on the first frame in your fla?
no there's script on both frames, here is the script:
score=0
stop()
createEmptyMovieClip("boxCam", 1000);
with (boxCam) {
onLoad = function () {
cameraX = _x;
cameraY = _y;
};
onEnterFrame = function () {
_x = _root.player._x;
_y = _root.player._y;
cameraX = cameraX+(_x-cameraX)/1;
_root._x = Stage.width/2-cameraX;
cameraY = cameraY+(_y-cameraY)/1;
_root._y = Stage.height/2-cameraY;
};
}
I had the same problem with True_Darkness' API camera. Probably better off making your own 'cos I sure as hell never figured it out.
"Whoever said 'winners never quit' obviously never considered addicts." - Hoeloe
At 11/25/08 09:49 PM, uyersuyer wrote: I had the same problem with True_Darkness' API camera. Probably better off making your own 'cos I sure as hell never figured it out.
yeah I could use another method I suppose, v-cam or a scrolling script. But what about the hittests?
try removing the clip and recreating it again on the second frame
Just talked to Dave (TD) on AIM. He says you have to put the camera on its own layer and just extend the frame through where you need the camera to be.
"Whoever said 'winners never quit' obviously never considered addicts." - Hoeloe