00:00
00:00
liuzirui1122
Animator, Composer, Game Designer, Webmaster, Programmer, Dreamer.

Vitech Liu @liuzirui1122

Age 26, Male

Full-stack developer

BUPT

China

Joined on 7/12/11

Level:
6
Exp Points:
290 / 400
Exp Rank:
> 100,000
Vote Power:
4.55 votes
Audio Scouts
1
Rank:
Civilian
Global Rank:
> 100,000
Blams:
2
Saves:
32
B/P Bonus:
0%
Whistle:
Normal
Trophies:
8
Medals:
287

Well does anyone have the vcam code in AS3.0?

Posted by liuzirui1122 - August 23rd, 2015


For some reason I'm now in urgent need of it. 

BTW now the network ban here is extremely bad, which forced me to change several VPN and finally got the access to NG. sorry to those who I answer your PM so late :|


Comments

I have one that I tested and it's supposed to be pretty efficient:

function cameraFollowCharacter(event:Event){
root.scrollRect = new Rectangle(player.x - stage.stageWidth/2, player.y - stage.stageHeight/2, stage.stageWidth, stage.stageHeight);
}

Many thanks!! This is really useful.

Suffered