Vcam in AS2, help!
I need help making a vcam that follows the character in AS2. The vcams that I tried are all way too laggy so i'd love any other alternatives. This seems to be a good one, but it's in AS3, if anyone could help me out with converting it to AS2 or even finding alternatives I would be forever in your debt! Thanks!
Here's the AS3 code
import flash.events.Event;
import flash.geom.Rectangle;
stage.addEventListener(Event.ENTER_FRAME, cameraFollowCharacter);
function cameraFollowCharacter(event:Event){
root.scrollRect = new Rectangle(_root.main.x - stage.stageWidth/2, _root.main.y - stage.stageHeight/2, stage.stageWidth, stage.stageHeight);
}
