The Enchanted Cave 2
Delve into a strange cave with a seemingly endless supply of treasure, strategically choos
4.39 / 5.00 38,635 ViewsGhostbusters B.I.P.
COMPLETE edition of the interactive "choose next panel" comic
4.09 / 5.00 15,161 Viewsis it possible to have more than 1 vcam on at once? im trying to get 2 vcams to follow 2 diff people...each cam taking half the screen....but i cant figure it out only 1 vcam works at a time.
sorry, heres the vcam im using. this is for the 2nd player.
onClipEvent (enterFrame)
{
function camControl()
{
parentColor.setTransform(camColor.getTra nsform());
var _loc4 = sX / this._width;
var _loc3 = sY / this._height;
_parent._x = cX - this._x * _loc4;
_parent._y = cY - this._y * _loc3;
_parent._xscale = 100 * _loc4;
_parent._yscale = 100 * _loc3;
} // End of the function
function resetStage()
{
var _loc2 = {ra: 100, rb: 0, ga: 100, gb: 0, ba: 100, bb: 0, aa: 100, ab: 0};
parentColor.setTransform(_loc2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
} // End of the function
this._x = (_root.player2._x)
this._y = (_root.player2._y)
var oldMode = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX = Stage.width / 2;
var cY = Stage.height / 2;
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
}
its been over an hour and not a single reply :l
ive tried playing with the numbers but to no success
Only one works because V-Cams effectively move _root. around. You are trying to move _root. twice and thus breaking the laws of physics and all logic.
Song of the Firefly is on Steam Greenlight and Kickstarter. Give them a look and support the project!
------------------------------
At 1/28/09 05:19 PM, Greth-of-destruction wrote:At 1/28/09 05:17 PM, kris008 wrote: its been over an hour and not a single reply :lDo you have two vcam movieclips?
ive tried playing with the numbers but to no success
-GOD
yes 2 vcam movie clips on 2 different layers 1 called vcam 1 called vcam2
At 1/28/09 05:18 PM, Hoeloe wrote: Only one works because V-Cams effectively move _root. around. You are trying to move _root. twice and thus breaking the laws of physics and all logic.
oh :( is there any other way to do it?
At 1/28/09 05:22 PM, kris008 wrote: yes 2 vcam movie clips on 2 different layers 1 called vcam 1 called vcam2
That's not possible to do your task. You COULD do it probably if you put it in two seperate movie clips and mask it. That's what I did, and the V-Cam worked within the masked movie clip, and move areas in that only -- but you'll have to put your one guy in one movie clip with the v-cam, and mask that -- and than do the same with the other dude, and place them both on the screen at the same time. It's really hard to do, because when you have a V-cam it moves around the whole SCREEN, the whole screens dimensions are zoomed in with that cam. When you mask it and movie clip it, it'll just move around that little area, and you can have two dimensions.
I did it once before.. I just forget how I did it. So if I didn't help... Meh, I apologize.
At 1/28/09 05:26 PM, Rudy wrote:At 1/28/09 05:22 PM, kris008 wrote: yes 2 vcam movie clips on 2 different layers 1 called vcam 1 called vcam2That's not possible to do your task. You COULD do it probably if you put it in two seperate movie clips and mask it. That's what I did, and the V-Cam worked within the masked movie clip, and move areas in that only -- but you'll have to put your one guy in one movie clip with the v-cam, and mask that -- and than do the same with the other dude, and place them both on the screen at the same time. It's really hard to do, because when you have a V-cam it moves around the whole SCREEN, the whole screens dimensions are zoomed in with that cam. When you mask it and movie clip it, it'll just move around that little area, and you can have two dimensions.
I did it once before.. I just forget how I did it. So if I didn't help... Meh, I apologize.
well that would be a BIG problem concidering i also have a 4 player mode..i'll just have to stick to the way i already have it :l which isnt the best as its 1 cam which finds the centre point of all 4 players.
What you could do is instead of using a vcam, draw the game onto half of a bitmapdata and then draw the other half on.
This is my new site: ryanspeets.com
I know nothing about AS but is it possible that you could actually put two drawings of two cameras into one movieclip and then AS each to follow one guy?
If not then the only thing I can say is make it an online game.
At 1/29/09 10:10 AM, Madnessdude67 wrote: If not then the only thing I can say is make it an online game.
You realize that would be much more difficult, right?
This is my new site: ryanspeets.com