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

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