Hi, I've got a working Vcam that follows the player and everything. There is also a bunch of info and text boxes that appear on the screen as well, that I want to keep in place while running the SWF.
However, then I run the SWF, the Vcam works, but it moves every single thing on the stage with it.
How can I make it keep certain things in place, and other things moving?
This is the code I have for the Vcam right now:
import flash.events.Event;
import flash.geom.Rectangle;
//----------------------------------------------------------------
//CAMERA EVENT LISTENERS
stage.addEventListener(Event.ENTER_FRAME, cameraFollowcharacter);
//----------------------------------------------------------------
//CAMERA FUNCTION(S)
function cameraFollowcharacter(evt:Event)
{
x -= (x-(((char.x+(char.width/1.7))-(stage.stageWidth/1.7))*-1))/10;
y -= (y-(((char.y+(char.height/1.2))-(stage.stageHeight/1.2))*-1))/10;
}